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
39 changes: 39 additions & 0 deletions models/CreatedByUser.v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
title: CreatedByUser
type: object
x-examples:
default:
id: 42
first_name: Jane
last_name: Doe
email: [email protected]
permission_bundles:
- ADMIN
- INVITES
description: User who created the invite with their permission bundles
properties:
id:
type: integer
format: int32
description: User ID
first_name:
type: string
description: User's first name
last_name:
type: string
description: User's last name
email:
type: string
format: email
description: User's email address
permission_bundles:
type: array
description: List of permission bundle names assigned to the user
items:
type: string
example: ADMIN
required:
- id
- first_name
- last_name
- email
- permission_bundles
11 changes: 11 additions & 0 deletions models/Invite.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ x-examples:
created_at: '2018-02-10T09:30Z'
updated_at: '2018-02-10T09:30Z'
mobile_number: some text
created_by:
id: 42
first_name: Jane
last_name: Doe
email: [email protected]
permission_bundles:
- ADMIN
- INVITES
description: "The root of the Invite type's schema."
properties:
id:
Expand Down Expand Up @@ -130,6 +138,9 @@ properties:
assigned_stall:
$ref: ./AssignedStall.v1.yaml
nullable: true
created_by:
$ref: ./CreatedByUser.v1.yaml
nullable: true
required:
- id
- email
Expand Down
10 changes: 10 additions & 0 deletions models/InviteDetail.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ x-examples:
parking_lot_name: some text
parking_lot_id: 321
parking_stall_id: 332
created_by:
id: 42
first_name: Jane
last_name: Doe
email: [email protected]
permission_bundles:
- ADMIN
- INVITES
description: "The root of the InviteDetail type's schema."
properties:
id:
Expand Down Expand Up @@ -179,6 +187,8 @@ properties:
type: string
assigned_stall:
$ref: ./AssignedStall.v1.yaml
created_by:
$ref: ./CreatedByUser.v1.yaml
required:
- id
- last_name
Expand Down
16 changes: 16 additions & 0 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,14 @@ paths:
parking_lot_name: some text
parking_lot_id: 321
parking_stall_id: 332
created_by:
id: 42
first_name: Jane
last_name: Doe
email: [email protected]
permission_bundles:
- ADMIN
- INVITES
invite_watchlist:
id: 3
external_colours:
Expand Down Expand Up @@ -2611,6 +2619,14 @@ paths:
parking_lot_name: some text
parking_lot_id: 321
parking_stall_id: 332
created_by:
id: 42
first_name: Jane
last_name: Doe
email: [email protected]
permission_bundles:
- ADMIN
- INVITES
description: Successful response - returns a single `Invite`.
"400":
content:
Expand Down
Loading