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:
31
bruno-collections/casera-api/Residences/Create Residence.bru
Normal file
31
bruno-collections/casera-api/Residences/Create Residence.bru
Normal 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
|
||||
}
|
||||
}
|
||||
19
bruno-collections/casera-api/Residences/Delete Residence.bru
Normal file
19
bruno-collections/casera-api/Residences/Delete Residence.bru
Normal 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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
19
bruno-collections/casera-api/Residences/Get Residence.bru
Normal file
19
bruno-collections/casera-api/Residences/Get Residence.bru
Normal 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
|
||||
}
|
||||
21
bruno-collections/casera-api/Residences/Join With Code.bru
Normal file
21
bruno-collections/casera-api/Residences/Join With Code.bru
Normal 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"
|
||||
}
|
||||
}
|
||||
15
bruno-collections/casera-api/Residences/List Residences.bru
Normal file
15
bruno-collections/casera-api/Residences/List Residences.bru
Normal 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}}
|
||||
}
|
||||
15
bruno-collections/casera-api/Residences/My Residences.bru
Normal file
15
bruno-collections/casera-api/Residences/My Residences.bru
Normal 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}}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
31
bruno-collections/casera-api/Residences/Update Residence.bru
Normal file
31
bruno-collections/casera-api/Residences/Update Residence.bru
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user