Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 33 additions & 11 deletions backend/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ definitions:
type: object
CreateUser:
properties:
clerk_id:
example: user_123
type: string
department:
example: Housekeeping
type: string
Expand Down Expand Up @@ -204,6 +201,9 @@ definitions:
request_type:
example: recurring
type: string
request_version:
example: "2024-01-02T00:00:00Z"
type: string
reservation_id:
example: 521e8400-e458-41d4-a716-498655440000
type: string
Expand All @@ -216,9 +216,6 @@ definitions:
status:
example: assigned
type: string
updated_at:
example: "2024-01-02T00:00:00Z"
type: string
user_id:
example: 521ee400-e458-41d4-a716-446655440000
type: string
Expand Down Expand Up @@ -257,9 +254,6 @@ definitions:
type: object
User:
properties:
clerk_id:
example: user_123
type: string
created_at:
example: "2024-01-01T00:00:00Z"
type: string
Expand Down Expand Up @@ -300,6 +294,34 @@ definitions:
type: integer
message: {}
type: object
github_com_generate_selfserve_internal_models.CreateGuest:
properties:
first_name:
example: Jane
type: string
last_name:
example: Doe
type: string
profile_picture:
example: https://example.com/john.jpg
type: string
timezone:
example: America/New_York
type: string
type: object
github_com_generate_selfserve_internal_models.UpdateGuest:
properties:
first_name:
example: Jane
type: string
last_name:
example: Doe
type: string
profile_picture:
example: https://example.com/john.jpg
type: string
timezone:
example: America/New_York
github_com_generate_selfserve_internal_models.BookingStatus:
enum:
- active
Expand Down Expand Up @@ -344,7 +366,7 @@ paths:
name: request
required: true
schema:
$ref: '#/definitions/CreateGuest'
$ref: '#/definitions/github_com_generate_selfserve_internal_models.CreateGuest'
produces:
- application/json
responses:
Expand Down Expand Up @@ -419,7 +441,7 @@ paths:
name: request
required: true
schema:
$ref: '#/definitions/UpdateGuest'
$ref: '#/definitions/github_com_generate_selfserve_internal_models.UpdateGuest'
produces:
- application/json
responses:
Expand Down
Loading
Loading