2024-03-08 21:24:14 +02:00
|
|
|
## 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
|
|
|
|
|
2025-06-28 14:08:57 +03:00
|
|
|
https://wekan.fi/api/
|
2024-03-08 21:24:14 +02:00
|
|
|
|
|
|
|
Building API Docs: https://github.com/wekan/wekan/blob/main/releases/rebuild-docs.sh
|