Skip to content

Commit

Permalink
Add to api-docs.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-in-a-Jar committed Nov 16, 2023
1 parent 2e131c3 commit d2bbc35
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions src/main/resources/swagger/api-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3383,7 +3383,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserTermsOfServiceDetails'
$ref: '#/components/schemas/UserTermsOfServiceHistory'
404:
description: user has no history of terms of service actions
content:
Expand Down Expand Up @@ -3415,7 +3415,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UserTermsOfServiceDetails'
$ref: '#/components/schemas/UserTermsOfServiceHistory'
404:
description: user has no history of terms of service actions
content:
Expand Down Expand Up @@ -4139,6 +4139,33 @@ components:
type: boolean
description: based on the user's currently accepted terms of service version and when the terms of service were last changed,
should the user still be permitted to use the system?
UserTermsOfServiceHistory:
required:
- history
type: object
description: a user's terms of service action history
properties:
latestAcceptedVersion:
type: array
items:
$ref: '#/components/schemas/UserTermsOfServiceRecord'
UserTermsOfServiceRecord:
required:
- action
- version
- timestamp
type: object
properties:
action:
type: string
description: the terms of service action the user took
version:
type: string
description: the version of the terms of service the user accepted/rejected
timestamp:
type: string
format: date-time
description: the timestamp of the action
ManagedResourceGroupCoordinates:
required:
- tenantId
Expand Down

0 comments on commit d2bbc35

Please sign in to comment.