From 45bc80d5f0ee71ee835cc28e8bff22c85d5c82e9 Mon Sep 17 00:00:00 2001 From: Frank Rousseau Date: Thu, 5 Sep 2024 23:29:13 +0200 Subject: [PATCH] [qa] Remove curl exemple to comply to bump.sh restrictions --- zou/app/swagger.py | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/zou/app/swagger.py b/zou/app/swagger.py index 9fd0430fcc..4374d8254a 100644 --- a/zou/app/swagger.py +++ b/zou/app/swagger.py @@ -30,21 +30,13 @@

Before you can use any of the endpoints outline below, you will have to get a JWT token to authorize your requests. +

-You can get a authorization token using a (form-encoded) POST request to ```/auth/login```. -With curl this would look something like ```curl -X POST /auth/login -d "email=&password=```. +

+You will find the information to retrieve it in the +Zou documentation. +

-The response is a JSON object, specifically you'll need to provide the ```access_token``` for your future requests. - -Here is a complete authentication process as an example (again using curl): -``` -$ curl -X POST /api/auth/login -d "email=&password="' -{{"login": true", "access_token": "eyJ0e...", ...}} -$ jwt=eyJ0e... # Store the access token for easier use -$ curl -H "Authorization: Bearer $jwt" /api/data/projects -[{{...}}, -{{...}}] -``` [OpenAPI definition](/openapi.json) """