Add contractors by residence endpoint and Bruno API collection

- Add GET /contractors/by-residence/:residence_id/ endpoint
- Create comprehensive Bruno API collection (89 endpoints)
- Collection covers all API endpoints with Local and Dev environments

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Trey t
2025-12-01 20:38:57 -06:00
parent 0c86611a10
commit c72741fd5f
89 changed files with 1622 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
meta {
name: Create Residence
type: http
seq: 2
}
post {
url: {{api_url}}/residences/
body: json
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
body:json {
{
"name": "My Home",
"property_type_id": 1,
"street_address": "123 Main St",
"city": "San Francisco",
"state_province": "CA",
"postal_code": "94102",
"country": "USA",
"bedrooms": 3,
"bathrooms": 2.5,
"square_footage": 2000,
"year_built": 2015
}
}

View File

@@ -0,0 +1,19 @@
meta {
name: Delete Residence
type: http
seq: 5
}
delete {
url: {{api_url}}/residences/:id/
body: none
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
id: 1
}

View File

@@ -0,0 +1,19 @@
meta {
name: Generate Share Code
type: http
seq: 8
}
post {
url: {{api_url}}/residences/:id/generate-share-code/
body: none
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
id: 1
}

View File

@@ -0,0 +1,25 @@
meta {
name: Generate Tasks Report
type: http
seq: 9
}
post {
url: {{api_url}}/residences/:id/generate-tasks-report/
body: json
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
id: 1
}
body:json {
{
"email": "recipient@example.com"
}
}

View File

@@ -0,0 +1,19 @@
meta {
name: Get Residence Users
type: http
seq: 10
}
get {
url: {{api_url}}/residences/:id/users/
body: none
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
id: 1
}

View File

@@ -0,0 +1,19 @@
meta {
name: Get Residence
type: http
seq: 3
}
get {
url: {{api_url}}/residences/:id/
body: none
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
id: 1
}

View File

@@ -0,0 +1,21 @@
meta {
name: Join With Code
type: http
seq: 7
}
post {
url: {{api_url}}/residences/join-with-code/
body: json
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
body:json {
{
"code": "ABC123"
}
}

View File

@@ -0,0 +1,15 @@
meta {
name: List Residences
type: http
seq: 1
}
get {
url: {{api_url}}/residences/
body: none
auth: none
}
headers {
Authorization: Token {{auth_token}}
}

View File

@@ -0,0 +1,15 @@
meta {
name: My Residences
type: http
seq: 6
}
get {
url: {{api_url}}/residences/my-residences/
body: none
auth: none
}
headers {
Authorization: Token {{auth_token}}
}

View File

@@ -0,0 +1,20 @@
meta {
name: Remove Residence User
type: http
seq: 11
}
delete {
url: {{api_url}}/residences/:id/users/:user_id/
body: none
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
id: 1
user_id: 2
}

View File

@@ -0,0 +1,31 @@
meta {
name: Update Residence
type: http
seq: 4
}
put {
url: {{api_url}}/residences/:id/
body: json
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
id: 1
}
body:json {
{
"name": "My Updated Home",
"property_type_id": 1,
"street_address": "123 Main St",
"city": "San Francisco",
"state_province": "CA",
"postal_code": "94102",
"country": "USA"
}
}