mirror of https://github.com/wekan/wekan
The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at https://transifex.com/wekan/wekan only.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
687 B
33 lines
687 B
|
2 years ago
|
## Using Meteor with REST API
|
||
|
|
|
||
|
|
### 1) Adding API
|
||
|
|
|
||
|
|
```
|
||
|
|
meteor add simple:json-routes
|
||
|
|
```
|
||
|
|
|
||
|
|
https://atmospherejs.com/simple/json-routes
|
||
|
|
|
||
|
|
https://github.com/wekan/wekan/blob/main/.meteor/packages#L139
|
||
|
|
|
||
|
|
### 2) API code
|
||
|
|
|
||
|
|
At models directory:
|
||
|
|
|
||
|
|
https://github.com/wekan/wekan/blob/main/models/users.js#L2018
|
||
|
|
|
||
|
|
### 3) Login to API as JSON
|
||
|
|
|
||
|
|
https://github.com/wekan/wekan/wiki/REST-API#example-call---as-json
|
||
|
|
|
||
|
|
Also see at wiki right menu about REST API.
|
||
|
|
|
||
|
|
### 4) Use Python3 CLI to login to API and do REST API action
|
||
|
|
|
||
|
|
https://github.com/wekan/wekan/blob/main/api.py
|
||
|
|
|
||
|
|
### 4) API Docs
|
||
|
|
|
||
|
|
https://wekan.github.io/api/
|
||
|
|
|
||
|
|
Building API Docs: https://github.com/wekan/wekan/blob/main/releases/rebuild-docs.sh
|