{"info":{"_postman_id":"4edd2490-0dad-4976-9a57-d654a74c4ed6","name":"area","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"20779056","collectionId":"4edd2490-0dad-4976-9a57-d654a74c4ed6","publishedId":"2s9YJc1hgo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-10-02T13:53:04.000Z"},"item":[{"name":"Authentification","item":[{"name":"register","id":"1de963fb-bdf9-4e52-b235-efb38ad4beff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"area_test515\",\r\n    \"email\": \"area_test215@gmail.com\",\r\n    \"password\": \"area_test\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/register","urlObject":{"port":"8080","path":["api","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"15188990-0357-4c21-a326-fb686a4ee4e4","name":"already exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"area_test15\",\r\n    \"email\": \"area_test15@gmail.com\",\r\n    \"password\": \"area_test\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/register"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 12:37:00 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 12:37:00 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Ce nom d'utilisateur existe déjà\"\n}"},{"id":"bd8a93fd-9cf6-4cb6-98c0-bcc8c9e32006","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"area_test515\",\r\n    \"email\": \"area_test215@gmail.com\",\r\n    \"password\": \"area_test\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 12:37:27 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 12:37:27 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"User created successfully\",\n    \"user\": {\n        \"email\": \"area_test215@gmail.com\",\n        \"roles\": \"user\",\n        \"username\": \"area_test515\",\n        \"updated_at\": \"2023-11-05T12:37:27.000000Z\",\n        \"created_at\": \"2023-11-05T12:37:27.000000Z\",\n        \"id\": 47\n    },\n    \"authorisation\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwMDAvYXBpL3JlZ2lzdGVyIiwiaWF0IjoxNjk5MTg3ODQ3LCJleHAiOjE3MDY5NjM4NDcsIm5iZiI6MTY5OTE4Nzg0NywianRpIjoiTllETjk4V2hUcGpScUJ5WCIsInN1YiI6IjQ3IiwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyIsInVzZXJuYW1lIjoiYXJlYV90ZXN0NTE1IiwiZW1haWwiOiJhcmVhX3Rlc3QyMTVAZ21haWwuY29tIn0.l2as0x8N08kmdxVH571fazYdrcf0Q3GoJbcTvQ932vo\",\n        \"type\": \"bearer\"\n    }\n}"}],"_postman_id":"1de963fb-bdf9-4e52-b235-efb38ad4beff"},{"name":"login","id":"0e78c9ca-b7fc-4625-a4c3-e8325fda313f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"area_test@gmail.com\",\r\n    \"password\": \"area_test\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/login","urlObject":{"port":"8080","path":["api","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bda1beb0-3e17-4e27-94e8-ba971cf6cceb","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"area_test@gmail.com\",\r\n    \"password\": \"area_test\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 12:30:14 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 12:30:14 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"user\": {\n        \"id\": 12,\n        \"email\": \"area_test@gmail.com\",\n        \"email_verified_at\": null,\n        \"created_at\": \"2023-09-27T14:16:43.000000Z\",\n        \"updated_at\": \"2023-11-05T12:28:24.000000Z\",\n        \"roles\": \"user\",\n        \"username\": \"area_test\",\n        \"google_token\": \"ya29.a0AfB_byDuiLYGOkEFp7CPDeoZD4WDAchfZmzyPbwDctz5W2QXMg8TSZyCKO4K4ffofGeSacyjZsDPB0OASITFwxihDo6B1bphBAWBcxp_QTM55QXRYrU2Y0UxC3-rtv5eU57b67_OdxnkeZuh8M5GHAlwFAITVoc_MMwaCgYKAfsSARMSFQGOcNnC6H6dhoWZTuZFFwjA294t2g0170\",\n        \"spotify_token\": \"BQBmngSGDb8-pENiU1MG6MJuM54IYm4yljZVtDgPIoOsXM5UqDw6lbBsMBFihF3V8BRgSUkYZg5qc0Fn2_Zk185cF7LFMXi9tU1xMHbfK9Mr-ug2B-zbbPlJKrYQH4S6A7dj919SI5WnziC_nmqhdpJfBf7eDVJ9lbbttsyIRVM7W1cdV3bGRuu2Iq7b8SZ5cR5gkeVVEhoZKjRdtwDMxA\",\n        \"gmail_last_mail_id\": \"18ddd9277f6f364f\",\n        \"gmail_adress\": \"bonhur.gautier@gmail.com\",\n        \"discord_token\": \"hjDJGOYoi3Jsmc2XQgo0nQynVzQWwa\",\n        \"radio_france_token\": null,\n        \"followers_total_spotify\": \"0\",\n        \"hour_selected\": \"23:00\",\n        \"github_token\": \"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\",\n        \"dropbox_token\": \"sl.BpRa18FGH8lKRCuuOHzuTGatU5XtQ5AQBWY8W6INuivtwc_lOZJoSU9j98OWm-2ZX1mFBGbHm_qyfcolp9w_bWQaaP078afBGakfosgSRBnuLvov_hHGDi0jGp99knFLucSzfzlyhAkd\"\n    },\n    \"authorisation\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwMDAvYXBpL2xvZ2luIiwiaWF0IjoxNjk5MTg3NDE0LCJleHAiOjE3MDY5NjM0MTQsIm5iZiI6MTY5OTE4NzQxNCwianRpIjoiMVlpTFNFVzZRTjJKZEloaSIsInN1YiI6IjEyIiwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyIsInVzZXJuYW1lIjoiYXJlYV90ZXN0IiwiZW1haWwiOiJhcmVhX3Rlc3RAZ21haWwuY29tIn0.MHYqcl117ftVcTUhPQCVdZxDOMiO7zC1BOin4FopfuU\",\n        \"type\": \"bearer\"\n    }\n}"},{"id":"02c78e87-635e-48ae-8707-0c379b7bde12","name":"error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"area_testt@gmail.com\",\r\n    \"password\": \"area_test\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 12:32:26 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 12:32:26 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Invalid credentials\"\n}"}],"_postman_id":"0e78c9ca-b7fc-4625-a4c3-e8325fda313f"}],"id":"11bd0348-9246-4280-8584-c05df2bd09c2","_postman_id":"11bd0348-9246-4280-8584-c05df2bd09c2","description":""},{"name":"AREA","item":[{"name":"AreaHistorique","item":[{"name":"get all area historique","id":"93606b28-4e98-4dc6-90ab-682532a81c29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/areahistorique","urlObject":{"port":"8080","path":["api","areahistorique"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5f949913-91bf-4c82-9637-55774db6d5ec","name":"success","originalRequest":{"method":"GET","header":[],"url":"localhost:8000/api/areahistorique"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 13:56:11 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 13:56:11 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 8,\n        \"users_id\": 12,\n        \"name\": \"zizi\",\n        \"description\": \"La reaction create a issue a été déclenchée à 14:53:50.\",\n        \"informations_random\": null,\n        \"created_at\": \"2023-11-05T14:53:50.000000Z\",\n        \"updated_at\": \"2023-11-05T14:53:50.000000Z\"\n    }\n]"}],"_postman_id":"93606b28-4e98-4dc6-90ab-682532a81c29"}],"id":"63b0102f-df02-4c6a-a16c-b89e8cf033bd","_postman_id":"63b0102f-df02-4c6a-a16c-b89e8cf033bd","description":""},{"name":"create an area","id":"8df76e77-f381-4bb6-bfa0-ca624c1fed51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"fejfiefie\",\r\n    \"description\": \"fejife\",\r\n    \"service_action_id\": 18,\r\n    \"service_reaction_id\": 14,\r\n    \"config\": [\r\n        \"15:50\",\r\n        \"\",\r\n        \"bonhur.gautier@gmail.com\",\r\n        \"youhou\"\r\n    ],\r\n    \"activated\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/area","urlObject":{"port":"8080","path":["api","area"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ff26b022-8cfc-443f-b5b1-451c14eda04b","name":"fail creation area","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"fejfiefie\",\r\n    \"description\": \"fejife\",\r\n    \"service_action_id\": 18,\r\n    \"service_reaction_id\": 14,\r\n    \"config\": [\r\n        \"15:50\",\r\n        \"\",\r\n        \"bonhur.gautier@gmail.com\",\r\n        \"\"\r\n    ],\r\n    \"activated\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/area"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 12:38:03 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 12:38:03 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"57"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Content of the mail invalid\"\n}"},{"id":"0e4e4088-0498-4fe4-a2d4-cebe68cfa1c2","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"fejfiefie\",\r\n    \"description\": \"fejife\",\r\n    \"service_action_id\": 18,\r\n    \"service_reaction_id\": 14,\r\n    \"config\": [\r\n        \"15:50\",\r\n        \"\",\r\n        \"bonhur.gautier@gmail.com\",\r\n        \"youhou\"\r\n    ],\r\n    \"activated\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/area"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 12:38:40 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 12:38:40 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"area\": {\n        \"name\": \"fejfiefie\",\n        \"description\": \"fejife\",\n        \"activated\": false,\n        \"users_id\": 12,\n        \"updated_at\": \"2023-11-05T12:38:39.000000Z\",\n        \"created_at\": \"2023-11-05T12:38:39.000000Z\",\n        \"id\": 144\n    },\n    \"action\": {\n        \"services_id\": 18,\n        \"areas_id\": 144,\n        \"first_parameter\": \"15:50\",\n        \"second_parameter\": null,\n        \"activated\": false,\n        \"updated_at\": \"2023-11-05T12:38:40.000000Z\",\n        \"created_at\": \"2023-11-05T12:38:40.000000Z\",\n        \"id\": 130\n    },\n    \"reaction\": {\n        \"actions_id\": 130,\n        \"services_id\": 14,\n        \"first_parameter\": \"bonhur.gautier@gmail.com\",\n        \"second_parameter\": \"youhou\",\n        \"activated\": false,\n        \"updated_at\": \"2023-11-05T12:38:40.000000Z\",\n        \"created_at\": \"2023-11-05T12:38:40.000000Z\",\n        \"id\": 116\n    }\n}"}],"_postman_id":"8df76e77-f381-4bb6-bfa0-ca624c1fed51"},{"name":"get all areas","id":"c407d295-fe1e-497c-b395-6d0495cf0a93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/area","urlObject":{"port":"8080","path":["api","area"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6be50860-35ae-4894-9c6d-e7086cc60ac9","name":"success","originalRequest":{"method":"GET","header":[],"url":"localhost:8000/api/area"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 12:38:55 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 12:38:55 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 64,\n        \"name\": \"Test hour opti\",\n        \"description\": \"Testeita\",\n        \"activated\": false,\n        \"action\": [\n            {\n                \"id\": 52,\n                \"name\": null,\n                \"description\": null,\n                \"activated\": true,\n                \"services\": {\n                    \"id\": 18,\n                    \"service_name\": \"specific hour reached [ACTION]\",\n                    \"service_description\": \"triggered when an hour (h:m) is passed\",\n                    \"url\": \"eazeza\",\n                    \"working\": true\n                },\n                \"reactions\": [\n                    {\n                        \"id\": 38,\n                        \"activated\": true,\n                        \"action_id\": 52,\n                        \"services\": {\n                            \"id\": 14,\n                            \"service_name\": \"Send a mail google [REACTION]\",\n                            \"service_description\": \"send a mail\",\n                            \"url\": \"gmail.com\\n\",\n                            \"working\": true\n                        }\n                    }\n                ]\n            }\n        ],\n        \"historique\": []\n    },\n    {\n        \"id\": 36,\n        \"name\": \"AREA_test\",\n        \"description\": \"AREA de testt\",\n        \"activated\": false,\n        \"action\": [\n            {\n                \"id\": 26,\n                \"name\": null,\n                \"description\": null,\n                \"activated\": true,\n                \"services\": {\n                    \"id\": 2,\n                    \"service_name\": \"On receiving a mail google [ACTION]\",\n                    \"service_description\": \"notify when a user receive a mail\",\n                    \"url\": \"gmail.com\",\n                    \"working\": true\n                },\n                \"reactions\": [\n                    {\n                        \"id\": 14,\n                        \"activated\": true,\n                        \"action_id\": 26,\n                        \"services\": {\n                            \"id\": 14,\n                            \"service_name\": \"Send a mail google [REACTION]\",\n                            \"service_description\": \"send a mail\",\n                            \"url\": \"gmail.com\\n\",\n                            \"working\": true\n                        }\n                    }\n                ]\n            }\n        ],\n        \"historique\": []\n    },\n    {\n        \"id\": 144,\n        \"name\": \"fejfiefie\",\n        \"description\": \"fejife\",\n        \"activated\": false,\n        \"action\": [\n            {\n                \"id\": 130,\n                \"name\": null,\n                \"description\": null,\n                \"activated\": false,\n                \"services\": {\n                    \"id\": 18,\n                    \"service_name\": \"specific hour reached [ACTION]\",\n                    \"service_description\": \"triggered when an hour (h:m) is passed\",\n                    \"url\": \"eazeza\",\n                    \"working\": true\n                },\n                \"reactions\": [\n                    {\n                        \"id\": 116,\n                        \"activated\": false,\n                        \"action_id\": 130,\n                        \"services\": {\n                            \"id\": 14,\n                            \"service_name\": \"Send a mail google [REACTION]\",\n                            \"service_description\": \"send a mail\",\n                            \"url\": \"gmail.com\\n\",\n                            \"working\": true\n                        }\n                    }\n                ]\n            }\n        ],\n        \"historique\": []\n    },\n    {\n        \"id\": 102,\n        \"name\": \"test\",\n        \"description\": \"test\",\n        \"activated\": false,\n        \"action\": [\n            {\n                \"id\": 88,\n                \"name\": null,\n                \"description\": null,\n                \"activated\": true,\n                \"services\": {\n                    \"id\": 18,\n                    \"service_name\": \"specific hour reached [ACTION]\",\n                    \"service_description\": \"triggered when an hour (h:m) is passed\",\n                    \"url\": \"eazeza\",\n                    \"working\": true\n                },\n                \"reactions\": [\n                    {\n                        \"id\": 74,\n                        \"activated\": true,\n                        \"action_id\": 88,\n                        \"services\": {\n                            \"id\": 22,\n                            \"service_name\": \"Create an issue github [REACTION]\",\n                            \"service_description\": \"create an issue\",\n                            \"url\": \"github.com\",\n                            \"working\": true\n                        }\n                    }\n                ]\n            }\n        ],\n        \"historique\": []\n    },\n    {\n        \"id\": 103,\n        \"name\": \"aberrance\",\n        \"description\": \"aberrance\",\n        \"activated\": false,\n        \"action\": [\n            {\n                \"id\": 89,\n                \"name\": null,\n                \"description\": null,\n                \"activated\": true,\n                \"services\": {\n                    \"id\": 18,\n                    \"service_name\": \"specific hour reached [ACTION]\",\n                    \"service_description\": \"triggered when an hour (h:m) is passed\",\n                    \"url\": \"eazeza\",\n                    \"working\": true\n                },\n                \"reactions\": [\n                    {\n                        \"id\": 75,\n                        \"activated\": true,\n                        \"action_id\": 89,\n                        \"services\": {\n                            \"id\": 22,\n                            \"service_name\": \"Create an issue github [REACTION]\",\n                            \"service_description\": \"create an issue\",\n                            \"url\": \"github.com\",\n                            \"working\": true\n                        }\n                    }\n                ]\n            }\n        ],\n        \"historique\": []\n    },\n    {\n        \"id\": 104,\n        \"name\": \"deuxième test d'aberrance\",\n        \"description\": \"deuxieme test\",\n        \"activated\": false,\n        \"action\": [\n            {\n                \"id\": 90,\n                \"name\": null,\n                \"description\": null,\n                \"activated\": true,\n                \"services\": {\n                    \"id\": 18,\n                    \"service_name\": \"specific hour reached [ACTION]\",\n                    \"service_description\": \"triggered when an hour (h:m) is passed\",\n                    \"url\": \"eazeza\",\n                    \"working\": true\n                },\n                \"reactions\": [\n                    {\n                        \"id\": 76,\n                        \"activated\": true,\n                        \"action_id\": 90,\n                        \"services\": {\n                            \"id\": 22,\n                            \"service_name\": \"Create an issue github [REACTION]\",\n                            \"service_description\": \"create an issue\",\n                            \"url\": \"github.com\",\n                            \"working\": true\n                        }\n                    }\n                ]\n            }\n        ],\n        \"historique\": []\n    },\n    {\n        \"id\": 105,\n        \"name\": \"Eric\",\n        \"description\": \"Eric\",\n        \"activated\": false,\n        \"action\": [\n            {\n                \"id\": 91,\n                \"name\": null,\n                \"description\": null,\n                \"activated\": true,\n                \"services\": {\n                    \"id\": 18,\n                    \"service_name\": \"specific hour reached [ACTION]\",\n                    \"service_description\": \"triggered when an hour (h:m) is passed\",\n                    \"url\": \"eazeza\",\n                    \"working\": true\n                },\n                \"reactions\": [\n                    {\n                        \"id\": 77,\n                        \"activated\": true,\n                        \"action_id\": 91,\n                        \"services\": {\n                            \"id\": 22,\n                            \"service_name\": \"Create an issue github [REACTION]\",\n                            \"service_description\": \"create an issue\",\n                            \"url\": \"github.com\",\n                            \"working\": true\n                        }\n                    }\n                ]\n            }\n        ],\n        \"historique\": []\n    }\n]"}],"_postman_id":"c407d295-fe1e-497c-b395-6d0495cf0a93"},{"name":"update an area","id":"f938a7fd-c816-4dfb-ad42-ce979b9b03a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"fejfiefiae\",\r\n    \"description\": \"fejife\",\r\n    \"activated\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/area/102","urlObject":{"port":"8080","path":["api","area","102"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9be00697-d454-4096-83bf-cbb9127071c0","name":"update an area","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"fejfiefie\",\r\n    \"description\": \"fejife\",\r\n    \"activated\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/area/102"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 14:28:56 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 14:28:56 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 102,\n    \"users_id\": 12,\n    \"name\": \"fejfiefie\",\n    \"description\": \"fejife\",\n    \"activated\": false,\n    \"created_at\": \"2023-11-02T13:57:48.000000Z\",\n    \"updated_at\": \"2023-11-05T14:28:56.000000Z\"\n}"}],"_postman_id":"f938a7fd-c816-4dfb-ad42-ce979b9b03a7"},{"name":"get an specific area","id":"8833407e-9763-4c8d-93fc-95fa7f43cc2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test_area\",\r\n    \"description\": \"premiere area\",\r\n    \"activated\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/area/7","urlObject":{"port":"8080","path":["api","area","7"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4dc59100-996a-402d-971d-62b40f216286","name":"success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test_area\",\r\n    \"description\": \"premiere area\",\r\n    \"activated\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/area/36"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 12:39:43 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 12:39:43 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"52"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 36,\n        \"name\": \"AREA_test\",\n        \"description\": \"AREA de testt\",\n        \"activated\": false,\n        \"action\": [\n            {\n                \"id\": 26,\n                \"name\": null,\n                \"description\": null,\n                \"activated\": true,\n                \"services\": {\n                    \"id\": 2,\n                    \"service_name\": \"On receiving a mail google [ACTION]\",\n                    \"service_description\": \"notify when a user receive a mail\",\n                    \"url\": \"gmail.com\",\n                    \"working\": true\n                },\n                \"reactions\": [\n                    {\n                        \"id\": 14,\n                        \"activated\": true,\n                        \"action_id\": 26,\n                        \"services\": {\n                            \"id\": 14,\n                            \"service_name\": \"Send a mail google [REACTION]\",\n                            \"service_description\": \"send a mail\",\n                            \"url\": \"gmail.com\\n\",\n                            \"working\": true\n                        }\n                    }\n                ]\n            }\n        ],\n        \"historique\": []\n    }\n]"}],"_postman_id":"8833407e-9763-4c8d-93fc-95fa7f43cc2d"},{"name":"delete an area with a specific id","id":"709ce8d8-7284-44de-9192-acaeda88cc69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test_area\",\r\n    \"description\": \"premiere area\",\r\n    \"activated\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/area/36","urlObject":{"port":"8080","path":["api","area","36"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"220d007c-12bf-4a72-bcfe-30bf831f0e38","name":"error","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test_area\",\r\n    \"description\": \"premiere area\",\r\n    \"activated\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/area/15"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 12:40:11 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 12:40:11 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Area not found\"\n}"},{"id":"bd70e9b7-af8b-4e92-b3ce-e47f01f81311","name":"success","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test_area\",\r\n    \"description\": \"premiere area\",\r\n    \"activated\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/area/36"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 12:40:26 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 12:40:26 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Area and associated records deleted\"\n}"}],"_postman_id":"709ce8d8-7284-44de-9192-acaeda88cc69"}],"id":"4b83cb9a-5b96-420e-8397-5004ebb89386","_postman_id":"4b83cb9a-5b96-420e-8397-5004ebb89386","description":""},{"name":"Services","item":[{"name":"get all services","id":"b730ad5c-4950-4702-b1a8-9ea1218babde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/services","urlObject":{"port":"8080","path":["api","services"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0ca5b3b0-5fa9-4a64-a9a7-cac5fe38ec45","name":"success","originalRequest":{"method":"GET","header":[],"url":"localhost:8000/api/services"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 12:41:15 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 12:41:15 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 18,\n        \"service_name\": \"specific hour reached [ACTION]\",\n        \"service_description\": \"triggered when an hour (h:m) is passed\",\n        \"apikey\": \"eeza\",\n        \"url\": \"eazeza\",\n        \"working\": true,\n        \"created_at\": null,\n        \"updated_at\": null,\n        \"options\": [\n            \"hour selected (format = HH:MM)\"\n        ]\n    },\n    {\n        \"id\": 19,\n        \"service_name\": \"On new commit added github [ACTION]\",\n        \"service_description\": \"triggered when a new commit\",\n        \"apikey\": \"nothing\",\n        \"url\": \"github.com\",\n        \"working\": true,\n        \"created_at\": null,\n        \"updated_at\": null,\n        \"options\": [\n            \"repository (example: MaxPeix/AREA)\"\n        ]\n    },\n    {\n        \"id\": 20,\n        \"service_name\": \"On new issue github [ACTION]\",\n        \"service_description\": \"triggered when a new issue github\",\n        \"apikey\": \"nothing\",\n        \"url\": \"github.com\",\n        \"working\": true,\n        \"created_at\": null,\n        \"updated_at\": null,\n        \"options\": [\n            \"repository (example: MaxPeix/AREA)\"\n        ]\n    },\n    {\n        \"id\": 22,\n        \"service_name\": \"Create an issue github [REACTION]\",\n        \"service_description\": \"create an issue\",\n        \"apikey\": \"nothing\",\n        \"url\": \"github.com\",\n        \"working\": true,\n        \"created_at\": null,\n        \"updated_at\": null,\n        \"options\": [\n            \"repository (example: MaxPeix/AREA)\",\n            \"body of the issue (example: 'Hello test area issue')\"\n        ]\n    },\n    {\n        \"id\": 24,\n        \"service_name\": \"a crypto attains a certain price reached [ACTION]\",\n        \"service_description\": \"triggered when a crypto attain a choosen price\",\n        \"apikey\": \"no api key\",\n        \"url\": \"unknow for the moment\",\n        \"working\": true,\n        \"created_at\": null,\n        \"updated_at\": null,\n        \"options\": [\n            \"crypto (example: BTC) the default pair with the crypto is USDT\",\n            \"price (example: 35000)\"\n        ]\n    },\n    {\n        \"id\": 25,\n        \"service_name\": \"a temperature in a city is reached [ACTION]\",\n        \"service_description\": \"triggered when a certain temperature is reached in a specific city\",\n        \"apikey\": \"wttr.in/bordeaux\",\n        \"url\": \"wttr.in/bordeaux\",\n        \"working\": true,\n        \"created_at\": null,\n        \"updated_at\": null,\n        \"options\": [\n            \"city (example: Paris)\",\n            \"when temperature reached this temperature (example: 20)\"\n        ]\n    },\n    {\n        \"id\": 26,\n        \"service_name\": \"humidity is higher than the selected humidity in a city reached [ACTION]\",\n        \"service_description\": \"triggered when a certain humidity is reached in a city\",\n        \"apikey\": \"wttr.in/ format h\",\n        \"url\": \"wttr.in format h\",\n        \"working\": true,\n        \"created_at\": null,\n        \"updated_at\": null,\n        \"options\": [\n            \"city (example: Paris)\",\n            \"Percentage humidity of the city to trigger (example: 65)\"\n        ]\n    }\n]"}],"_postman_id":"b730ad5c-4950-4702-b1a8-9ea1218babde"},{"name":"Check services availability","id":"d861c203-b447-4e4f-99fc-ed773c2bb216","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8080/api/checktokens","urlObject":{"port":"8080","path":["api","checktokens"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e0aaf616-9deb-45e5-b04c-26efd2db40c9","name":"success","originalRequest":{"method":"GET","header":[],"url":"localhost:8000/api/checktokens"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 12:41:36 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 12:41:36 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"google\": true,\n    \"spotify\": true,\n    \"discord\": true,\n    \"github\": true,\n    \"dropbox\": false\n}"},{"id":"84f262ee-89ad-4f9b-9267-9ea8f996a8fd","name":"error","originalRequest":{"method":"GET","header":[],"url":"localhost:8000/api/checktokens"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sun, 05 Nov 2023 12:41:26 GMT"},{"key":"Date","value":"Sun, 05 Nov 2023 12:41:26 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthenticated.\"\n}"}],"_postman_id":"d861c203-b447-4e4f-99fc-ed773c2bb216"}],"id":"a1fcdf5b-db98-4d41-8066-cad07b2a913e","_postman_id":"a1fcdf5b-db98-4d41-8066-cad07b2a913e","description":""}]}