From 079f4d7916de3f55beaa8a35efd8a988f1fdd98d Mon Sep 17 00:00:00 2001 From: Marcelo Arocha Date: Thu, 28 Nov 2024 17:23:27 -0300 Subject: [PATCH] add readme --- README.md | 11 ++++++++++- test_token.py => app/test_token.py | 0 2 files changed, 10 insertions(+), 1 deletion(-) rename test_token.py => app/test_token.py (100%) diff --git a/README.md b/README.md index 9a0ef72..aa3699f 100644 --- a/README.md +++ b/README.md @@ -79,8 +79,17 @@ curl https://nomedocliente.getname.noharm.ai/patient-name/12345 Com auth: +Gerar o token: + +``` +cd app +python test_token.py +``` + +Acionar o endpoint usando o token gerado: + ``` -curl -H "Authorization: Bearer token" https://nomedocliente.getname.noharm.ai/patient-name/12345 +curl -H "Authorization: Bearer [token]" https://nomedocliente.getname.noharm.ai/patient-name/12345 ``` ### 1.2. Test Multiple diff --git a/test_token.py b/app/test_token.py similarity index 100% rename from test_token.py rename to app/test_token.py