mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
test: fix openapi schema to reflect new route
This commit is contained in:
@@ -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:
|
||||
|
||||
24
public/openapi/read/admin/settings/api.yaml
Normal file
24
public/openapi/read/admin/settings/api.yaml
Normal 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
|
||||
Reference in New Issue
Block a user