test: fix openapi schema to reflect new route

This commit is contained in:
Julian Lam
2023-03-20 17:03:55 -04:00
parent 402229845c
commit 92073cf274
2 changed files with 26 additions and 0 deletions

View File

@@ -90,6 +90,8 @@ paths:
$ref: 'read/admin/settings/homepage.yaml'
/api/admin/settings/social:
$ref: 'read/admin/settings/social.yaml'
/api/admin/settings/api:
$ref: 'read/admin/settings/api.yaml'
/api/admin/settings/email:
$ref: 'read/admin/settings/email.yaml'
/api/admin/settings/user:

View File

@@ -0,0 +1,24 @@
get:
tags:
- admin
summary: Get API token settings
responses:
"200":
description: "A JSON object containing API tokens and settings"
content:
application/json:
schema:
allOf:
- type: object
properties:
lastSeen:
type: object
description: A key-value set of API tokens and a UNIX timestamp of when it was last used
properties: {}
additionalProperties: {}
lastSeenISO:
type: object
description: A key-value set of API tokens and an ISO 8601 formatted date string of when it was last used
properties: {}
additionalProperties: {}
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps