123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- swagger: '2.0'
- info:
- title: Wekan REST API
- version: v5.04
- description: |
- The REST API allows you to control and extend Wekan with ease.
- If you are an end-user and not a dev or a tester, [create an issue](https://github.com/wekan/wekan/issues/new) to request new APIs.
- > All API calls in the documentation are made using `curl`. However, you are free to use Java / Python / PHP / Golang / Ruby / Swift / Objective-C / Rust / Scala / C# or any other programming languages.
- # Production Security Concerns
- When calling a production Wekan server, ensure it is running via HTTPS and has a valid SSL Certificate. The login method requires you to post your username and password in plaintext, which is why we highly suggest only calling the REST login api over HTTPS. Also, few things to note:
- * Only call via HTTPS
- * Implement a timed authorization token expiration strategy
- * Ensure the calling user only has permissions for what they are calling and no more
- schemes:
- - http
- securityDefinitions:
- UserSecurity:
- type: apiKey
- in: header
- name: Authorization
- paths:
- /users/login:
- post:
- operationId: login
- summary: Login with REST API
- consumes:
- - application/x-www-form-urlencoded
- - application/json
- tags:
- - Login
- parameters:
- - name: username
- in: formData
- required: true
- description: |
- Your username
- type: string
- - name: password
- in: formData
- required: true
- description: |
- Your password
- type: string
- format: password
- responses:
- 200:
- description: |-
- Successful authentication
- schema:
- items:
- properties:
- id:
- type: string
- token:
- type: string
- tokenExpires:
- type: string
- 400:
- description: |
- Error in authentication
- schema:
- items:
- properties:
- error:
- type: number
- reason:
- type: string
- default:
- description: |
- Error in authentication
- /users/register:
- post:
- operationId: register
- summary: Register with REST API
- description: |
- Notes:
- - You will need to provide the token for any of the authenticated methods.
- consumes:
- - application/x-www-form-urlencoded
- - application/json
- tags:
- - Login
- parameters:
- - name: username
- in: formData
- required: true
- description: |
- Your username
- type: string
- - name: password
- in: formData
- required: true
- description: |
- Your password
- type: string
- format: password
- - name: email
- in: formData
- required: true
- description: |
- Your email
- type: string
- responses:
- 200:
- description: |-
- Successful registration
- schema:
- items:
- properties:
- id:
- type: string
- token:
- type: string
- tokenExpires:
- type: string
- 400:
- description: |
- Error in registration
- schema:
- items:
- properties:
- error:
- type: number
- reason:
- type: string
- default:
- description: |
- Error in registration
- definitions:
|