Files
NodeBB/public/openapi/write/users/uid/tokens.yaml

25 lines
771 B
YAML
Raw Normal View History

2020-10-13 14:22:00 -04:00
post:
tags:
- users
summary: generate a user token
description: This route can only be used to generate tokens for the same user. In other words, you cannot use this route to generate a token for a different user than the one you are authenticated as.
parameters:
- in: path
2020-10-26 21:51:25 -04:00
name: uid
2020-10-13 14:22:00 -04:00
schema:
2020-10-26 21:51:25 -04:00
type: integer
2020-10-13 14:22:00 -04:00
required: true
2020-10-26 21:51:25 -04:00
description: uid of the user to generate a token for
example: 1
2020-10-13 14:22:00 -04:00
responses:
'200':
2020-10-26 21:51:25 -04:00
description: successfully generated a user token
2020-10-13 14:22:00 -04:00
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../../components/schemas/Status.yaml#/Status
response:
type: object