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,19 @@
meta {
name: Archive Task
type: http
seq: 10
}
post {
url: {{api_url}}/tasks/:id/archive/
body: none
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
id: 1
}

View File

@@ -0,0 +1,19 @@
meta {
name: Cancel Task
type: http
seq: 8
}
post {
url: {{api_url}}/tasks/:id/cancel/
body: none
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
id: 1
}

View File

@@ -0,0 +1,27 @@
meta {
name: Create Task
type: http
seq: 2
}
post {
url: {{api_url}}/tasks/
body: json
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
body:json {
{
"residence_id": 1,
"title": "Clean gutters",
"description": "Clear debris from all gutters",
"category_id": 1,
"priority_id": 2,
"frequency_id": 3,
"due_date": "2024-12-31"
}
}

View File

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

View File

@@ -0,0 +1,19 @@
meta {
name: Get Task Completions
type: http
seq: 12
}
get {
url: {{api_url}}/tasks/:id/completions/
body: none
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
id: 1
}

View File

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

View File

@@ -0,0 +1,19 @@
meta {
name: Get Tasks by Residence
type: http
seq: 6
}
get {
url: {{api_url}}/tasks/by-residence/:residence_id/
body: none
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
residence_id: 1
}

View File

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

View File

@@ -0,0 +1,19 @@
meta {
name: Mark In Progress
type: http
seq: 7
}
post {
url: {{api_url}}/tasks/:id/mark-in-progress/
body: none
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
id: 1
}

View File

@@ -0,0 +1,19 @@
meta {
name: Unarchive Task
type: http
seq: 11
}
post {
url: {{api_url}}/tasks/:id/unarchive/
body: none
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
id: 1
}

View File

@@ -0,0 +1,19 @@
meta {
name: Uncancel Task
type: http
seq: 9
}
post {
url: {{api_url}}/tasks/:id/uncancel/
body: none
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
id: 1
}

View File

@@ -0,0 +1,26 @@
meta {
name: Update Task
type: http
seq: 4
}
put {
url: {{api_url}}/tasks/:id/
body: json
auth: none
}
headers {
Authorization: Token {{auth_token}}
}
params:path {
id: 1
}
body:json {
{
"title": "Updated task title",
"description": "Updated description"
}
}