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:
19
bruno-collections/casera-api/Documents/Activate Document.bru
Normal file
19
bruno-collections/casera-api/Documents/Activate Document.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Activate Document
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/documents/:id/activate/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
|
||||
params:path {
|
||||
id: 1
|
||||
}
|
||||
25
bruno-collections/casera-api/Documents/Create Document.bru
Normal file
25
bruno-collections/casera-api/Documents/Create Document.bru
Normal file
@@ -0,0 +1,25 @@
|
||||
meta {
|
||||
name: Create Document
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/documents/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": "Home Insurance Policy",
|
||||
"description": "Annual home insurance policy document",
|
||||
"file_url": "https://example.com/documents/policy.pdf",
|
||||
"residence_id": 1,
|
||||
"is_warranty": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Deactivate Document
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/documents/:id/deactivate/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
|
||||
params:path {
|
||||
id: 1
|
||||
}
|
||||
19
bruno-collections/casera-api/Documents/Delete Document.bru
Normal file
19
bruno-collections/casera-api/Documents/Delete Document.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Delete Document
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{api_url}}/documents/:id/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
|
||||
params:path {
|
||||
id: 1
|
||||
}
|
||||
19
bruno-collections/casera-api/Documents/Get Document.bru
Normal file
19
bruno-collections/casera-api/Documents/Get Document.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Get Document
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{api_url}}/documents/:id/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
|
||||
params:path {
|
||||
id: 1
|
||||
}
|
||||
15
bruno-collections/casera-api/Documents/List Documents.bru
Normal file
15
bruno-collections/casera-api/Documents/List Documents.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: List Documents
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{api_url}}/documents/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
15
bruno-collections/casera-api/Documents/List Warranties.bru
Normal file
15
bruno-collections/casera-api/Documents/List Warranties.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: List Warranties
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{api_url}}/documents/warranties/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
29
bruno-collections/casera-api/Documents/Update Document.bru
Normal file
29
bruno-collections/casera-api/Documents/Update Document.bru
Normal file
@@ -0,0 +1,29 @@
|
||||
meta {
|
||||
name: Update Document
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{api_url}}/documents/:id/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
|
||||
params:path {
|
||||
id: 1
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": "Home Insurance Policy 2024",
|
||||
"description": "Updated annual home insurance policy",
|
||||
"file_url": "https://example.com/documents/policy-2024.pdf",
|
||||
"residence_id": 1,
|
||||
"is_warranty": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user