Add createtoken API

This commit is contained in:
magicbelette 2021-02-02 17:06:06 +01:00
parent 4fc2d7b935
commit a7b43d5b57
4 changed files with 179 additions and 0 deletions

View file

@ -245,6 +245,46 @@ paths:
type: string
defaultSwimlaneId:
type: string
/api/createtoken/{user}:
post:
operationId: createtoken
summary: CreateToken for a user with REST API
description: |
Only the admin user (the first user) can call the REST API.
consumes:
- application/x-www-form-urlencoded
- application/json
tags:
- Login
parameters:
- name: user
in: path
description: |
the user ID
type: string
required: true
responses:
200:
description: |-
Successful
schema:
items:
properties:
id:
type: string
token:
type: string
400:
description: |
Error
schema:
items:
properties:
error:
type: number
reason:
type: string
/api/boards/{board}:
get:
operationId: get_board