mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
Add createtoken API
This commit is contained in:
parent
4fc2d7b935
commit
a7b43d5b57
4 changed files with 179 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue