From ffb11cd10e01e363a424aaf2ff168491b0821b93 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 31 Oct 2022 20:12:42 +0100 Subject: [PATCH] Add instructions for API Authorization (#1406) * Add instructions for API Authorization --- README.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 3343ca7b8..c9237a765 100644 --- a/README.md +++ b/README.md @@ -190,20 +190,22 @@ Run `yarn test` ## Public API -### Import Activities - -#### Request +### Authorization: Bearer Token -`POST http://localhost:3333/api/v1/import` - -#### Authorization: Bearer Token - -Set the header as follows: +Set the header for each request as follows: ``` "Authorization": "Bearer eyJh..." ``` +You can get the _Bearer Token_ via `GET http://localhost:3333/api/v1/auth/anonymous/` or `curl -s http://localhost:3333/api/v1/auth/anonymous/`. + +### Import Activities + +#### Request + +`POST http://localhost:3333/api/v1/import` + #### Body ```