Node.js based forum software built for the modern web
test: fix openapi schema to reflect new route
Julian Lam92073cf274be
diff --git a/public/openapi/read.yaml b/public/openapi/read.yamlindex 91a1fdfbb1..030bad7925 100644--- a/public/openapi/read.yaml+++ b/public/openapi/read.yaml@@ -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:diff --git a/public/openapi/read/admin/settings/api.yaml b/public/openapi/read/admin/settings/api.yamlnew file mode 100644index 0000000000..c36f11d9a6--- /dev/null+++ b/public/openapi/read/admin/settings/api.yaml@@ -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\ No newline at end of file