{"info":{"_postman_id":"5d4acbfe-68d6-48ed-b934-879f1b07fdda","name":"API PROMOTION MARJANE","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"22002647","collectionId":"5d4acbfe-68d6-48ed-b934-879f1b07fdda","publishedId":"2s9YXe84kX","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-11-03T19:35:50.000Z"},"item":[{"name":"Responsable Rayon","item":[{"name":"refuser ou approuve une pormoiton","id":"329ebd99-a5a6-4614-9581-a8b7a92129f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Charset","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"responsableId\": \"55875874\",\n  \"promotionList\": [\n    {\n      \"id\": \"1\",\n      \"status\": \"REFUSER\"\n    },\n    {\n      \"id\": \"2\",\n      \"status\": \"REFUSER\"\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://localhost:8080/api/v1/responsables-promotion","description":"<p>Responsable refuser ou approuve une promotion</p>\n","urlObject":{"path":["api","v1","responsables-promotion"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"5982082f-69a0-4aab-bfaf-f223a931f326","name":"si le operation bien executer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"responsableId\": \"<string>\",\n  \"promotionList\": [\n    {\n      \"id\": \"<integer>\",\n      \"status\": \"ACCPETER\"\n    },\n    {\n      \"id\": \"<integer>\",\n      \"status\": \"ACCPETER\"\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://localhost:8080/responsables-promotion"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<integer>\",\n    \"status\": \"REFUSER\"\n  },\n  {\n    \"id\": \"<integer>\",\n    \"status\": \"ACCPETER\"\n  }\n]"},{"id":"115ad157-365d-433e-a7af-a3803fc14e54","name":"bad request response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"responsableId\": \"<string>\",\n  \"promotionList\": [\n    {\n      \"id\": \"<integer>\",\n      \"status\": \"ACCPETER\"\n    },\n    {\n      \"id\": \"<integer>\",\n      \"status\": \"ACCPETER\"\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"http://localhost:8080/responsables-promotion"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"<string>\",\n  \"status\": \"<string>\",\n  \"message\": \"<string>\",\n  \"parameters\": [\n    \"<string>\",\n    \"<string>\"\n  ],\n  \"horodatage\": \"<dateTime>\"\n}"}],"_postman_id":"329ebd99-a5a6-4614-9581-a8b7a92129f1"},{"name":"Login Respoonsable","id":"a67a9847-79ac-4ada-9d5e-5b0daf81419c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"example@gmail.com\",\n    \"password\":\"password\"\n\n} ","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/responsable-rayon/login","urlObject":{"path":["api","v1","responsable-rayon","login"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"a67a9847-79ac-4ada-9d5e-5b0daf81419c"},{"name":"register new responsable-rayon","id":"8cd97fab-9009-4cab-8c8c-fa97cfbac679","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"nom\":\"lastname\",\n    \"prenom\":\"firstname\",\n    \"username\":\"username\",\n    \"email\":\"example@gmail.com\",\n    \"password\":\"password\"\n\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/responsable-rayon/register","urlObject":{"path":["api","v1","responsable-rayon","register"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"8cd97fab-9009-4cab-8c8c-fa97cfbac679"},{"name":"List Promotion","id":"0081d566-83b7-453e-b73d-7b4127c1922c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"barer aljsklhfkpshfl;kfsfhkjhkjashkj","type":"text"}],"url":"http://localhost:8080/api/v1/responsables-rayon/promotions","urlObject":{"path":["api","v1","responsables-rayon","promotions"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"0081d566-83b7-453e-b73d-7b4127c1922c"}],"id":"ffff683c-234c-45d2-b9fc-4e4a3ad089f9","_postman_id":"ffff683c-234c-45d2-b9fc-4e4a3ad089f9","description":""},{"name":"Admin General","item":[{"name":"Auth","item":[{"name":"Login","id":"3283bf69-79c3-4785-8648-e36b1a420f51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"admin@example.com\",\n    \"password\":\"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/admin-general/login","urlObject":{"path":["api","v1","admin-general","login"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"3283bf69-79c3-4785-8648-e36b1a420f51"},{"name":"register","id":"7c0105a7-f24c-423a-9386-0a4ea2abcfeb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"admin@example.com\",\n    \"password\":\"password\",\n    \"username\":\"elhjuojy\",\n    \"nom\":\"elhjuojy\",\n    \"prenom\":\"elmahdi\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/admin-general/register","urlObject":{"path":["api","v1","admin-general","register"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c0105a7-f24c-423a-9386-0a4ea2abcfeb"}],"id":"b014d745-8a28-4ad1-a049-f08461a6b199","_postman_id":"b014d745-8a28-4ad1-a049-f08461a6b199","description":""},{"name":"getStatisticsPromotionsAuNiveauDuRoyaume","id":"2b0444ba-ffff-4930-98b1-2febb78f4af3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"barer genertedtokeeenakdjhakjha8y843278sljkcdhjks","type":"text"}],"url":"http://localhost:8080/api/v1/statistics/promotions/royaume","urlObject":{"path":["api","v1","statistics","promotions","royaume"],"host":["http://localhost:8080"],"query":[{"disabled":true,"description":{"content":"<p>Promotion status</p>\n","type":"text/plain"},"key":"status","value":"ACCPETER"}],"variable":[]}},"response":[],"_postman_id":"2b0444ba-ffff-4930-98b1-2febb78f4af3"}],"id":"d128a762-e8d5-432e-a5e8-29f87a85c873","_postman_id":"d128a762-e8d5-432e-a5e8-29f87a85c873","description":""},{"name":"Promotion","item":[{"name":"Get All promotion","id":"8e121481-af96-4d04-ae05-5d7ccc9524f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/promotions","urlObject":{"path":["api","v1","promotions"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e121481-af96-4d04-ae05-5d7ccc9524f8"}],"id":"28a65d0b-31d8-42c5-8dd2-292bb5882ad8","_postman_id":"28a65d0b-31d8-42c5-8dd2-292bb5882ad8","description":""},{"name":"Admin Centre","item":[{"name":"Auth","item":[{"name":"Login","id":"2d21f27f-b74c-4a56-9939-61738feedf82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/admin-centre/auth","urlObject":{"path":["api","v1","admin-centre","auth"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"2d21f27f-b74c-4a56-9939-61738feedf82"}],"id":"904ff981-ca7e-4f12-8743-255ae99b5777","_postman_id":"904ff981-ca7e-4f12-8743-255ae99b5777","description":""},{"name":"New Request","id":"3a9e5a91-14e3-4b6d-bb39-dcdfa2f1f89a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/admin_centres/promotions/10","urlObject":{"path":["api","v1","admin_centres","promotions","10"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a9e5a91-14e3-4b6d-bb39-dcdfa2f1f89a"}],"id":"316eb7bd-3143-450f-a530-2d13f68c4fb0","_postman_id":"316eb7bd-3143-450f-a530-2d13f68c4fb0","description":""},{"name":"Swagger Api","id":"bd16e6f6-3fab-4d3f-ae6b-43328634e0f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/v3/api-docs","urlObject":{"path":["v3","api-docs"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd16e6f6-3fab-4d3f-ae6b-43328634e0f6"}],"event":[{"listen":"prerequest","script":{"id":"4bec2238-46f9-4874-96bc-39677d2ce338","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bdf8528f-6f43-4582-9f96-3a376b979596","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"http://localhost:8080","type":"string"},{"key":"version","value":"v1","type":"string"},{"key":"host","value":"api.marjane","type":"string"}]}