{"info":{"_postman_id":"d2d40e0a-0c22-4f4e-993d-596fc459c42f","name":"gymApi","description":"<html><head></head><body><p>Definizione dell'api utilizzabili per le varie funzioni contenuti nell'app</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"22669479","collectionId":"d2d40e0a-0c22-4f4e-993d-596fc459c42f","publishedId":"2sA3QwcA8c","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-06-02T13:06:51.000Z"},"item":[{"name":"Access","item":[{"name":"Get Access with ID","id":"550b3543-368a-42ab-96e5-a7b1afe015b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/access/65ee25191a99908c17d1bf35","urlObject":{"path":["access","65ee25191a99908c17d1bf35"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"550b3543-368a-42ab-96e5-a7b1afe015b0"},{"name":"Patch access","id":"fc10c676-1514-4146-b8f6-578559c5a433","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n        \"id\": \"3\",\r\n        \"idCustomer\": \"114783\",\r\n        \"access\": \"18/11/18\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/access","urlObject":{"path":["access"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fc10c676-1514-4146-b8f6-578559c5a433"},{"name":"Post access","id":"09394b80-0810-4486-b568-2589bc944da6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"customer\": \"65b550afdda93e0bae5f91c0\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/access","urlObject":{"path":["access"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"09394b80-0810-4486-b568-2589bc944da6"},{"name":"Get Access","id":"108ed433-4503-4d50-be99-1b722743e52d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/access","urlObject":{"path":["access"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"108ed433-4503-4d50-be99-1b722743e52d"},{"name":"Delete access","id":"f4ba4723-8d10-4017-9c31-f0701ef288ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/access/1","urlObject":{"path":["access","1"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f4ba4723-8d10-4017-9c31-f0701ef288ec"}],"id":"2db0b90a-e9a6-4da1-aa5f-9996894917ef","_postman_id":"2db0b90a-e9a6-4da1-aa5f-9996894917ef","description":""},{"name":"Subscriptions","item":[{"name":"Subscriptions","id":"8f3dba1c-b6ae-4f93-aa38-afe4499c443a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/subscriptions","urlObject":{"path":["subscriptions"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f3dba1c-b6ae-4f93-aa38-afe4499c443a"},{"name":"Subscription with ID","id":"6e597aa4-ef01-449a-a1c9-7195f4dd262f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/subscriptions/3","urlObject":{"path":["subscriptions","3"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6e597aa4-ef01-449a-a1c9-7195f4dd262f"},{"name":"Post Subscription","id":"3681a62c-5186-4c02-862a-aef689ea3ba1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"   {\r\n        \"subscriptionDuration\": 1,\r\n        \"weeklyWorkouts\": 3,\r\n        \"price\": 40\r\n    }","options":{"raw":{"language":"json"}}},"url":"{{url}}/subscriptions","urlObject":{"path":["subscriptions"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3681a62c-5186-4c02-862a-aef689ea3ba1"},{"name":"Patch Subscription","id":"14bb3e59-bca8-4d7b-9dc9-904f076d036a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n        \"id\": \"2\",\r\n        \"subscriptionDuration\": 1,\r\n        \"weeklyWorkouts\": 3,\r\n        \"price\": 40\r\n    }","options":{"raw":{"language":"json"}}},"url":"{{url}}/subscriptions","urlObject":{"path":["subscriptions"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"14bb3e59-bca8-4d7b-9dc9-904f076d036a"},{"name":"Delete Subscription","id":"30ad4d89-f738-46a9-ad49-4b7dfa4349ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/subscriptions/3","urlObject":{"path":["subscriptions","3"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"30ad4d89-f738-46a9-ad49-4b7dfa4349ce"}],"id":"172ad843-3527-43f5-b0d3-8f6f173d3385","_postman_id":"172ad843-3527-43f5-b0d3-8f6f173d3385","description":""},{"name":"Customers","item":[{"name":"Post Customer","id":"fed70b1f-b08a-463c-9715-fdc9c4a7b653","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {\n        \"name\": \"nucal\",\n        \"surname\": \"Alfonsus\",\n        \"birth\": \"2018-11-11T00:00:00.000Z\",\n        \"gender\": \"male\",\n        \"subscription\": 1,\n        \"weeklyWorkouts\": 3,\n        \"accesses\": 12,\n        \"subscriptionExpires\": \"20/12/18\",\n        \"status\": \"in scadenza\"\n    }","options":{"raw":{"language":"json"}}},"url":"{{url}}/customers","urlObject":{"path":["customers"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fed70b1f-b08a-463c-9715-fdc9c4a7b653"},{"name":"Customers","id":"97d78ea7-8fdb-487a-aec4-1d8cafc9c887","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/customers/?limit=2&page=2","urlObject":{"path":["customers",""],"host":["{{url}}"],"query":[{"key":"limit","value":"2"},{"key":"page","value":"2"}],"variable":[]}},"response":[],"_postman_id":"97d78ea7-8fdb-487a-aec4-1d8cafc9c887"},{"name":"Customer with ID","id":"19b895a9-9c96-4ac2-86d6-e3e2527529fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/customers/100","urlObject":{"path":["customers","100"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"19b895a9-9c96-4ac2-86d6-e3e2527529fa"},{"name":"Patch Customer","id":"5902f748-bdb0-4d3f-8c42-c85de108d7bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":" {\r\n        \"idCustomer\": \"10330\",\r\n        \"name\": \"nucal\",\r\n        \"surname\": \"Alfonsus\",\r\n        \"birth\": \"2018-11-11T00:00:00.000Z\",\r\n        \"gender\": \"male\",\r\n        \"subscription\": 1,\r\n        \"weeklyWorkouts\": 3,\r\n        \"accesses\": 12,\r\n        \"subscriptionExpires\": \"20/12/18\",\r\n        \"status\": \"in scadenza\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"{{url}}/customers","urlObject":{"path":["customers"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5902f748-bdb0-4d3f-8c42-c85de108d7bd"},{"name":"Delete Customer","id":"ecf4436c-c449-401b-8285-05b06ffd33f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/customers/65b7a6a69e2502744bd303df","urlObject":{"path":["customers","65b7a6a69e2502744bd303df"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ecf4436c-c449-401b-8285-05b06ffd33f8"}],"id":"2270b186-c950-4d27-abd8-bb742778262d","_postman_id":"2270b186-c950-4d27-abd8-bb742778262d","description":""},{"name":"Payments","item":[{"name":"Payments","id":"95e41e95-ce76-454c-8cf9-161acaa21f71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/payments","urlObject":{"path":["payments"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"95e41e95-ce76-454c-8cf9-161acaa21f71"},{"name":"Payments with ID","id":"7e9926a8-c5c5-4e4c-8dd2-753283a17800","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/payments/65ee2893943eba84ecc97133","urlObject":{"path":["payments","65ee2893943eba84ecc97133"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e9926a8-c5c5-4e4c-8dd2-753283a17800"},{"name":"Post payments","id":"45746bbd-dfd4-4b88-9d81-4b9139dd3210","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"customer\": \"65b550afdda93e0bae5f91c3\",\r\n        \"price\": 40\r\n    }","options":{"raw":{"language":"json"}}},"url":"{{url}}/payments","urlObject":{"path":["payments"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"45746bbd-dfd4-4b88-9d81-4b9139dd3210"},{"name":"Delete Payment","id":"e5826e6f-e595-44bb-b5e0-916b3faa2462","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{url}}/payments/2","urlObject":{"path":["payments","2"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e5826e6f-e595-44bb-b5e0-916b3faa2462"}],"id":"0bb5b05b-f25c-4175-bc53-f82a538eb94e","_postman_id":"0bb5b05b-f25c-4175-bc53-f82a538eb94e","description":""},{"name":"Users","item":[{"name":"Logout","id":"60293d19-c97d-4f9f-83ba-50abcf1e17fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/users/logout","urlObject":{"path":["users","logout"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"60293d19-c97d-4f9f-83ba-50abcf1e17fc"},{"name":"Update password","event":[{"listen":"test","script":{"id":"a48daa64-8a74-450a-9092-7ebe11b0b50c","exec":["pm.environment.set(\"jwt\",pm.response.json().token);"],"type":"text/javascript"}}],"id":"b4fedc5f-6e46-43a8-908b-856206718954","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"passwordCurrent\": \"mattia123\",\n    \"password\": \"mattia1234\",\n    \"passwordConfirm\": \"mattia1234\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/users/updateMyPassword","urlObject":{"path":["users","updateMyPassword"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4fedc5f-6e46-43a8-908b-856206718954"},{"name":"signup","event":[{"listen":"test","script":{"id":"6324bc55-338b-402c-9806-22442c829a85","exec":["pm.environment.set(\"jwt\",pm.response.json().token);"],"type":"text/javascript"}}],"id":"f4219b53-665b-44df-98b4-54aa71d9ac32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Mattia\",\n    \"email\": \"mattomix956@gmail.com\",\n    \"role\": \"manager\",\n    \"password\": \"mattia123\",\n    \"passwordConfirm\": \"mattia123\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/users/signup","urlObject":{"path":["users","signup"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f4219b53-665b-44df-98b4-54aa71d9ac32"},{"name":"Login","event":[{"listen":"test","script":{"id":"b31f7185-a6a6-47d5-a6e8-abc4482a888b","exec":["pm.environment.set(\"jwt\",pm.response.json().token);"],"type":"text/javascript"}}],"id":"9e7a6f9b-b694-4978-83fb-5eab80dc2107","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"mattomix956@gmail.com\",\n    \"password\": \"mattia123\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/users/login","urlObject":{"path":["users","login"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e7a6f9b-b694-4978-83fb-5eab80dc2107"},{"name":"Forgot Password","id":"43a837a1-5d08-4cb8-9dc7-fc1984dc48fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\" : \"mattomix956@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/users/forgotPassword","urlObject":{"path":["users","forgotPassword"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"43a837a1-5d08-4cb8-9dc7-fc1984dc48fd"},{"name":"Forgot Password with email","id":"f7746d76-91bf-40a6-8160-e0491f3866d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"mattia1234\",\n    \"passwordConfirm\": \"mattia1234\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/users/resetPassword/7d28eabb43cd20592b10569d26c75081215feed114ebf6d2f9d45142e67e72b9","urlObject":{"path":["users","resetPassword","7d28eabb43cd20592b10569d26c75081215feed114ebf6d2f9d45142e67e72b9"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7746d76-91bf-40a6-8160-e0491f3866d9"}],"id":"c2baca54-d447-4a61-8529-a6d4c7890a4a","_postman_id":"c2baca54-d447-4a61-8529-a6d4c7890a4a","description":""}]}