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/Notifications/Delete Device.bru
Normal file
19
bruno-collections/casera-api/Notifications/Delete Device.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Delete Device
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{api_url}}/notifications/devices/:id/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
|
||||
params:path {
|
||||
id: 1
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Get Preferences
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{api_url}}/notifications/preferences/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
15
bruno-collections/casera-api/Notifications/List Devices.bru
Normal file
15
bruno-collections/casera-api/Notifications/List Devices.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: List Devices
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{api_url}}/notifications/devices/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: List Notifications
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{api_url}}/notifications/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
15
bruno-collections/casera-api/Notifications/Mark All Read.bru
Normal file
15
bruno-collections/casera-api/Notifications/Mark All Read.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Mark All Read
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/notifications/mark-all-read/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
19
bruno-collections/casera-api/Notifications/Mark Read.bru
Normal file
19
bruno-collections/casera-api/Notifications/Mark Read.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Mark Read
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/notifications/:id/mark-read/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
|
||||
params:path {
|
||||
id: 1
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
meta {
|
||||
name: Register Device
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/notifications/devices/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"device_token": "abc123devicetoken",
|
||||
"platform": "ios",
|
||||
"device_name": "iPhone 15 Pro"
|
||||
}
|
||||
}
|
||||
15
bruno-collections/casera-api/Notifications/Unread Count.bru
Normal file
15
bruno-collections/casera-api/Notifications/Unread Count.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Unread Count
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{api_url}}/notifications/unread-count/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
meta {
|
||||
name: Update Preferences
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{api_url}}/notifications/preferences/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"task_reminders": true,
|
||||
"task_due_soon": true,
|
||||
"task_overdue": true,
|
||||
"task_completed": true,
|
||||
"residence_shared": true,
|
||||
"marketing": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user