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:
@@ -0,0 +1,20 @@
|
||||
meta {
|
||||
name: Apple Sign In
|
||||
type: http
|
||||
seq: 11
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/auth/apple-sign-in/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"identity_token": "eyJhbG...",
|
||||
"authorization_code": "code...",
|
||||
"first_name": "John",
|
||||
"last_name": "Doe"
|
||||
}
|
||||
}
|
||||
15
bruno-collections/casera-api/Authentication/Current User.bru
Normal file
15
bruno-collections/casera-api/Authentication/Current User.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Current User
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{api_url}}/auth/me/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
meta {
|
||||
name: Forgot Password
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/auth/forgot-password/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "user@example.com"
|
||||
}
|
||||
}
|
||||
18
bruno-collections/casera-api/Authentication/Login.bru
Normal file
18
bruno-collections/casera-api/Authentication/Login.bru
Normal file
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: Login
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/auth/login/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"username": "apple",
|
||||
"password": "password123"
|
||||
}
|
||||
}
|
||||
15
bruno-collections/casera-api/Authentication/Logout.bru
Normal file
15
bruno-collections/casera-api/Authentication/Logout.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Logout
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/auth/logout/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
19
bruno-collections/casera-api/Authentication/Register.bru
Normal file
19
bruno-collections/casera-api/Authentication/Register.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Register
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/auth/register/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"username": "newuser",
|
||||
"email": "newuser@example.com",
|
||||
"password": "securepassword123"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Resend Verification
|
||||
type: http
|
||||
seq: 10
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/auth/resend-verification/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Reset Password
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/auth/reset-password/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "user@example.com",
|
||||
"code": "123456",
|
||||
"new_password": "newSecurePassword123"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
meta {
|
||||
name: Update Profile
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{api_url}}/auth/profile/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"first_name": "John",
|
||||
"last_name": "Doe",
|
||||
"phone_number": "+1234567890"
|
||||
}
|
||||
}
|
||||
21
bruno-collections/casera-api/Authentication/Verify Email.bru
Normal file
21
bruno-collections/casera-api/Authentication/Verify Email.bru
Normal file
@@ -0,0 +1,21 @@
|
||||
meta {
|
||||
name: Verify Email
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/auth/verify-email/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Token {{auth_token}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"code": "123456"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
meta {
|
||||
name: Verify Reset Code
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{api_url}}/auth/verify-reset-code/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"email": "user@example.com",
|
||||
"code": "123456"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user