diff --git a/REST-API.md b/REST-API.md index 9fb5baa..1b934ef 100644 --- a/REST-API.md +++ b/REST-API.md @@ -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 \