From 7bfefe4729669c67c9f880ac71652b58cf5aa642 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 15 Jan 2023 23:55:25 +0200 Subject: [PATCH] Updated REST API (markdown) --- REST-API.md | 6 ++++++ 1 file changed, 6 insertions(+) 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 \