Updated REST API (markdown)

Lauri Ojansivu 2023-01-15 23:55:25 +02:00
parent f98c071aeb
commit 7bfefe4729

@ -73,6 +73,9 @@ When calling a production Wekan server, ensure it is running via HTTPS and has a
* **You will need to provide the `token` for any of the authenticated methods.**
## Example Call - As Form Data
DOES NOT WORK ! Please use As JSON example below !
```bash
curl http://localhost:3000/users/login \
-d "username=myusername&password=mypassword"
@ -85,6 +88,9 @@ curl http://localhost:3000/users/login \
## Example Call - As JSON
THIS WORKS !! Alternatively, look at api.py example at https://github.com/wekan/wekan
```bash
curl -H "Content-type:application/json" \
http://localhost:3000/users/login \