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/Tasks/Archive Task.bru
Normal file
19
bruno-collections/casera-api/Tasks/Archive Task.bru
Normal 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
|
||||
}
|
||||
19
bruno-collections/casera-api/Tasks/Cancel Task.bru
Normal file
19
bruno-collections/casera-api/Tasks/Cancel Task.bru
Normal 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
|
||||
}
|
||||
27
bruno-collections/casera-api/Tasks/Create Task.bru
Normal file
27
bruno-collections/casera-api/Tasks/Create Task.bru
Normal 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"
|
||||
}
|
||||
}
|
||||
19
bruno-collections/casera-api/Tasks/Delete Task.bru
Normal file
19
bruno-collections/casera-api/Tasks/Delete Task.bru
Normal 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
|
||||
}
|
||||
19
bruno-collections/casera-api/Tasks/Get Task Completions.bru
Normal file
19
bruno-collections/casera-api/Tasks/Get Task Completions.bru
Normal 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
|
||||
}
|
||||
19
bruno-collections/casera-api/Tasks/Get Task.bru
Normal file
19
bruno-collections/casera-api/Tasks/Get Task.bru
Normal 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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
15
bruno-collections/casera-api/Tasks/List Tasks.bru
Normal file
15
bruno-collections/casera-api/Tasks/List Tasks.bru
Normal 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}}
|
||||
}
|
||||
19
bruno-collections/casera-api/Tasks/Mark In Progress.bru
Normal file
19
bruno-collections/casera-api/Tasks/Mark In Progress.bru
Normal 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
|
||||
}
|
||||
19
bruno-collections/casera-api/Tasks/Unarchive Task.bru
Normal file
19
bruno-collections/casera-api/Tasks/Unarchive Task.bru
Normal 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
|
||||
}
|
||||
19
bruno-collections/casera-api/Tasks/Uncancel Task.bru
Normal file
19
bruno-collections/casera-api/Tasks/Uncancel Task.bru
Normal 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
|
||||
}
|
||||
26
bruno-collections/casera-api/Tasks/Update Task.bru
Normal file
26
bruno-collections/casera-api/Tasks/Update Task.bru
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user