From 543070e5c2fbd4d74aadf0ee51dc5615f3c2c912 Mon Sep 17 00:00:00 2001 From: PEDROLI Benjamin <benjamin.pedroli@soprasteria.com> Date: Thu, 11 Mar 2021 14:30:45 +0100 Subject: [PATCH] add POST example via Postman --- .../Pilote - TS - Back/functionalities/routes.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/pilote/Pilote - TS - Back/functionalities/routes.md b/docs/pilote/Pilote - TS - Back/functionalities/routes.md index 0a93486..88aa70d 100644 --- a/docs/pilote/Pilote - TS - Back/functionalities/routes.md +++ b/docs/pilote/Pilote - TS - Back/functionalities/routes.md @@ -25,6 +25,17 @@ This section explains the different API route. - `/api/beneficiaire/remove'`: This rotue is used in order to remove Usager domain and his trigger proccess. Only availabe by POST. This route is not accessible from any part of TS FRONT application. Protected rout by the same token of create route. +## Add one benificiary by Postman +- Create a POST request +- Entry the URL: http://localhost:3020/api/beneficiaire/create or https://pilote-agent-rec.grandlyon.com/api/beneficiaire/create +- Push in Authorizathion/ Bearer Token => the token use by "process.env.COZY_SECRET" +- In Body, as JSON format example : +- `` +{"cozy_name":"pilote-rec.cozy.self-data.alpha.grandlyon.com","trigger":"https://pilote-rec.cozy.self-data.alpha.grandlyon.com/jobs/webhooks/d010bf3fa2aed6f3c6584ea93a54affc"} +`` +- Local : `` +{"cozy_name":"mps.cozy.tools:8080","trigger":"http://mps.cozy.tools:8080/jobs/webhooks/"} +`` # Cozy -- GitLab