{"info":{"_postman_id":"eeed8f64-4bdd-472d-8f27-757606370963","name":"CutQueue","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"23267969","collectionId":"eeed8f64-4bdd-472d-8f27-757606370963","publishedId":"2sA3BrWpMz","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-04-23T18:30:20.000Z"},"item":[{"name":"Barbershop","item":[{"name":"Create","event":[{"listen":"test","script":{"id":"69cfcb5d-adb0-4f5a-81d2-155ab77a93e1","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript"}}],"id":"b6aa969d-1b0b-41a3-875c-916907d18068","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Corte rápido","type":"text"},{"key":"description","value":"Corte rápido e de qualidade","type":"text"},{"key":"address","value":"Rua imaginária","type":"text"},{"key":"phone","value":"31 99999-9999","type":"text"},{"key":"ownerId","value":"0c1a9350-9845-4f73-903c-2393f89918ce","type":"text"}]},"url":"http://localhost:3030/api/barbershops","description":"<p>This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.</p>\n<p>A successful POST request typically returns a <code>200 OK</code> or <code>201 Created</code> response code.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","barbershops"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b6aa969d-1b0b-41a3-875c-916907d18068"},{"name":"Update","event":[{"listen":"test","script":{"id":"69cfcb5d-adb0-4f5a-81d2-155ab77a93e1","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript"}}],"id":"f5ab9e78-8938-4e97-b044-5ff283d11b45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Barbearia","type":"text","disabled":true},{"key":"description","value":"Cortes legais","type":"text"}]},"url":"http://localhost:3030/api/barbershops/:id","description":"<p>This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.</p>\n<p>A successful POST request typically returns a <code>200 OK</code> or <code>201 Created</code> response code.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","barbershops",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"9576849a-484e-4501-a65c-de978e226f71","key":"id"}]}},"response":[],"_postman_id":"f5ab9e78-8938-4e97-b044-5ff283d11b45"},{"name":"Get All","event":[{"listen":"test","script":{"id":"69cfcb5d-adb0-4f5a-81d2-155ab77a93e1","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript"}}],"id":"ce1ecc95-6828-4070-8ae8-1c545a3c002c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"client3","type":"text"},{"key":"email","value":"client4@gmail.com","type":"text"},{"key":"password","value":"123Seguro&","type":"text"},{"key":"role","value":"client","type":"text"},{"key":"phone","value":"99999-9999","type":"text"}]},"url":"http://localhost:3030/api/barbershops","description":"<p>This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.</p>\n<p>A successful POST request typically returns a <code>200 OK</code> or <code>201 Created</code> response code.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","barbershops"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ce1ecc95-6828-4070-8ae8-1c545a3c002c"},{"name":"Get","event":[{"listen":"test","script":{"id":"69cfcb5d-adb0-4f5a-81d2-155ab77a93e1","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript"}}],"id":"6c650061-594c-4a70-b977-91cbaa952b7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3030/api/barbershops/id/:id","description":"<p>This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.</p>\n<p>A successful POST request typically returns a <code>200 OK</code> or <code>201 Created</code> response code.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","barbershops","id",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"b3579bc8-faee-4b7d-a194-4472ec521931","key":"id"}]}},"response":[],"_postman_id":"6c650061-594c-4a70-b977-91cbaa952b7f"},{"name":"Get From OwnerId","event":[{"listen":"test","script":{"id":"69cfcb5d-adb0-4f5a-81d2-155ab77a93e1","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript"}}],"id":"845c0320-468f-4bd8-972e-983636326b9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3030/api/barbershops/owner/:ownerId","description":"<p>This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.</p>\n<p>A successful POST request typically returns a <code>200 OK</code> or <code>201 Created</code> response code.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","barbershops","owner",":ownerId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"0c1a9350-9845-4f73-903c-2393f89918ce","key":"ownerId"}]}},"response":[],"_postman_id":"845c0320-468f-4bd8-972e-983636326b9f"},{"name":"Delete","event":[{"listen":"test","script":{"id":"69cfcb5d-adb0-4f5a-81d2-155ab77a93e1","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript"}}],"id":"9b3f5aaa-149e-4aa9-b6da-2b740c845faf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3030/api/barbershops/:id","description":"<p>This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.</p>\n<p>A successful POST request typically returns a <code>200 OK</code> or <code>201 Created</code> response code.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","barbershops",":id"],"host":["localhost"],"query":[],"variable":[{"id":"1177ef7f-c503-4a16-b8c9-b37514b2679c","type":"any","value":"9576849a-484e-4501-a65c-de978e226f71","key":"id"}]}},"response":[],"_postman_id":"9b3f5aaa-149e-4aa9-b6da-2b740c845faf"}],"id":"bb55477a-386a-4283-8196-aac3f7e6ee75","_postman_id":"bb55477a-386a-4283-8196-aac3f7e6ee75","description":""},{"name":"Appointments","item":[{"name":"Create","id":"74332b36-1360-4b27-bd2a-302a0653c024","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"startTime","value":"2024-05-18T11:21:00Z","type":"text"},{"key":"date","value":"2024-05-18T00:00:00Z","type":"text"},{"key":"customerId","value":"4be9d9dd-f04e-48d0-bfca-953511978c06","type":"text"},{"key":"barbershopId","value":"08ece939-c2f9-4d99-b392-086833b9dcd0q","type":"text"},{"key":"serviceId","value":"d2cd8089-860c-4d27-a0aa-99c32694e00f","type":"text"}]},"url":"http://localhost:3030/api/appointments","urlObject":{"protocol":"http","port":"3030","path":["api","appointments"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"74332b36-1360-4b27-bd2a-302a0653c024"},{"name":"Get","id":"40f9b475-0e3a-4486-a90a-e45a31365985","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3030/api/appointments/:id","urlObject":{"protocol":"http","port":"3030","path":["api","appointments",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"9561dd0b-bfff-4bfd-a994-aa7e5df74a8a","key":"id"}]}},"response":[],"_postman_id":"40f9b475-0e3a-4486-a90a-e45a31365985"},{"name":"Get User Apoointments","id":"42f4bcf5-d986-463e-bf9b-f656eabac3f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3030/api/appointments/byCustomer/:customerId","urlObject":{"protocol":"http","port":"3030","path":["api","appointments","byCustomer",":customerId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"4be9d9dd-f04e-48d0-bfca-953511978c06","key":"customerId"}]}},"response":[],"_postman_id":"42f4bcf5-d986-463e-bf9b-f656eabac3f8"},{"name":"Get by date period","id":"bf7b3532-4835-4448-9604-793138627a2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"initalDate","value":"2018-02-18","type":"text"},{"key":"finalDate","value":"2018-02-25","type":"text"},{"key":"barbershopId","value":"b3579bc8-faee-4b7d-a194-4472ec521931","type":"text"}]},"url":"http://localhost:3030/api/appointments/byDate","urlObject":{"protocol":"http","port":"3030","path":["api","appointments","byDate"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf7b3532-4835-4448-9604-793138627a2a"},{"name":"Cancel Appoitment","id":"402e980b-7cb8-48f8-be1b-2851d2147f39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:3030/api/appointments/cancel/:appointmentId","urlObject":{"protocol":"http","port":"3030","path":["api","appointments","cancel",":appointmentId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"9561dd0b-bfff-4bfd-a994-aa7e5df74a8a","key":"appointmentId"}]}},"response":[],"_postman_id":"402e980b-7cb8-48f8-be1b-2851d2147f39"}],"id":"7b02c0d7-0214-4f21-a78b-b2b24c99a3a0","_postman_id":"7b02c0d7-0214-4f21-a78b-b2b24c99a3a0","description":""},{"name":"Opening Hours","item":[{"name":"Create","id":"544915ca-5333-4fb2-9656-caa5861354b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"barbershopId","value":"08ece939-c2f9-4d99-b392-086833b9dcd0","type":"text"},{"key":"day","value":"5","type":"text"},{"key":"openingTime","value":"08:30","type":"text"},{"key":"closingTime","value":"19:00","type":"text"}]},"url":"http://localhost:3030/api/openingHours/","urlObject":{"protocol":"http","port":"3030","path":["api","openingHours",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"544915ca-5333-4fb2-9656-caa5861354b4"},{"name":"Barbershop oppening hours","id":"f74697c4-fb3e-4749-9c04-3c18e9930c53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3030/api/openingHours/:barbershopId","urlObject":{"protocol":"http","port":"3030","path":["api","openingHours",":barbershopId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"08ece939-c2f9-4d99-b392-086833b9dcd0","key":"barbershopId"}]}},"response":[],"_postman_id":"f74697c4-fb3e-4749-9c04-3c18e9930c53"},{"name":"Update","id":"8e351899-acdb-404e-83b8-a1840541463d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"openingTime","value":"48:00","type":"text"},{"key":"closingTime","value":"63:25","type":"text"}]},"url":"http://localhost:3030/api/openingHours/:openingHoursId","urlObject":{"protocol":"http","port":"3030","path":["api","openingHours",":openingHoursId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"71b67646-5979-4be7-8394-0defd8fc175c","key":"openingHoursId"}]}},"response":[],"_postman_id":"8e351899-acdb-404e-83b8-a1840541463d"},{"name":"Delete","id":"b38bbf4c-a194-4f32-aa89-cde2caaafe3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3030/api/openingHours/:openingHoursId","urlObject":{"protocol":"http","port":"3030","path":["api","openingHours",":openingHoursId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"61d96c9d-62a9-45f5-a13e-50d74ee22032","key":"openingHoursId"}]}},"response":[],"_postman_id":"b38bbf4c-a194-4f32-aa89-cde2caaafe3e"}],"id":"d8ef6a9e-1ac5-4438-90f8-e9bbe80438ab","_postman_id":"d8ef6a9e-1ac5-4438-90f8-e9bbe80438ab","description":""},{"name":"Service","item":[{"name":"Create","event":[{"listen":"test","script":{"id":"69cfcb5d-adb0-4f5a-81d2-155ab77a93e1","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript"}}],"id":"927a0240-e909-4d50-b1a4-a196c7aa8447","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Barba","type":"text"},{"key":"description","value":"Barba completa","type":"text"},{"key":"price","value":"25.00","type":"text"},{"key":"duration","value":"30","type":"text"},{"key":"barbershopId","value":"08ece939-c2f9-4d99-b392-086833b9dcd0","type":"text"}]},"url":"http://localhost:3030/api/services","description":"<p>This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.</p>\n<p>A successful POST request typically returns a <code>200 OK</code> or <code>201 Created</code> response code.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","services"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"927a0240-e909-4d50-b1a4-a196c7aa8447"},{"name":"Update","event":[{"listen":"test","script":{"id":"69cfcb5d-adb0-4f5a-81d2-155ab77a93e1","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript"}}],"id":"78e1263f-c3d7-4da7-877e-132e09caa6aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Corte","type":"text"},{"key":"description","value":"Cortes legais","type":"text","disabled":true},{"key":"price","value":"","type":"text","disabled":true},{"key":"duration","value":"20","type":"text"}]},"url":"http://localhost:3030/api/services/:id","description":"<p>This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.</p>\n<p>A successful POST request typically returns a <code>200 OK</code> or <code>201 Created</code> response code.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","services",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"5c305487-1d21-4d8b-aefd-049e6e3fa57f","key":"id"}]}},"response":[],"_postman_id":"78e1263f-c3d7-4da7-877e-132e09caa6aa"},{"name":"Get services from barbershop","event":[{"listen":"test","script":{"id":"69cfcb5d-adb0-4f5a-81d2-155ab77a93e1","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript"}}],"id":"d3c3dc31-eada-44e8-bb44-bb364d7a4be8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3030/api/services/servicesFromBarbershop/:barbershopId","description":"<p>This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.</p>\n<p>A successful POST request typically returns a <code>200 OK</code> or <code>201 Created</code> response code.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","services","servicesFromBarbershop",":barbershopId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"08ece939-c2f9-4d99-b392-086833b9dcd0","key":"barbershopId"}]}},"response":[],"_postman_id":"d3c3dc31-eada-44e8-bb44-bb364d7a4be8"},{"name":"Get","event":[{"listen":"test","script":{"id":"69cfcb5d-adb0-4f5a-81d2-155ab77a93e1","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript"}}],"id":"9b0e9c05-f003-414b-9aa7-c9fae8978c8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3030/api/services/:id","description":"<p>This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.</p>\n<p>A successful POST request typically returns a <code>200 OK</code> or <code>201 Created</code> response code.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","services",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"5c305487-1d21-4d8b-aefd-049e6e3fa57f","key":"id"}]}},"response":[],"_postman_id":"9b0e9c05-f003-414b-9aa7-c9fae8978c8a"},{"name":"Delete","event":[{"listen":"test","script":{"id":"69cfcb5d-adb0-4f5a-81d2-155ab77a93e1","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript"}}],"id":"0b42ee22-0e65-40a4-8f69-f3b1df1d5bbd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3030/api/services/:id","description":"<p>This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.</p>\n<p>A successful POST request typically returns a <code>200 OK</code> or <code>201 Created</code> response code.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","services",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"b3b25190-b105-4e85-bc56-229668f355bf","key":"id"}]}},"response":[],"_postman_id":"0b42ee22-0e65-40a4-8f69-f3b1df1d5bbd"}],"id":"66ad34ee-8525-4bd0-b1fc-7ffef9fa51f2","_postman_id":"66ad34ee-8525-4bd0-b1fc-7ffef9fa51f2","description":""},{"name":"User","item":[{"name":"login","id":"e53d0809-1bbd-4df6-b979-3865491c6ee6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"client@gmail.com","type":"text"},{"key":"password","value":"123Seguro&","type":"text"}]},"url":"http://localhost:3030/api/users/login","urlObject":{"protocol":"http","port":"3030","path":["api","users","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e53d0809-1bbd-4df6-b979-3865491c6ee6"},{"name":"logout","id":"94f9bd5b-185f-42a1-b9a0-8450854a585f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:3030/api/users/logout","urlObject":{"protocol":"http","port":"3030","path":["api","users","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"94f9bd5b-185f-42a1-b9a0-8450854a585f"},{"name":"Create","event":[{"listen":"test","script":{"id":"69cfcb5d-adb0-4f5a-81d2-155ab77a93e1","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript"}}],"id":"cad1d65d-abd3-4f2e-a69b-594db8f27bdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"admin","type":"text"},{"key":"email","value":"admin@gmail.com","type":"text"},{"key":"password","value":"123Seguro&","type":"text"},{"key":"role","value":"admin","type":"text"},{"key":"phone","value":"99999-9999","type":"text"}]},"url":"http://localhost:3030/api/users/","description":"<p>This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.</p>\n<p>A successful POST request typically returns a <code>200 OK</code> or <code>201 Created</code> response code.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","users",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cad1d65d-abd3-4f2e-a69b-594db8f27bdb"},{"name":"Get All","event":[{"listen":"test","script":{"id":"5390f29f-cbd4-438b-892e-57d558721390","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"932024d9-44e3-4296-87e9-e2ca41b4fa01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3030/api/users/","description":"<p>This is a GET request and it is used to \"get\" data from an endpoint. There is no request body for a GET request, but you can use query parameters to help specify the resource you want data on (e.g., in this request, we have <code>id=1</code>).</p>\n<p>A successful GET response will have a <code>200 OK</code> status, and should include some kind of response body - for example, HTML web content or JSON data.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","users",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"932024d9-44e3-4296-87e9-e2ca41b4fa01"},{"name":"Profile","event":[{"listen":"test","script":{"id":"5390f29f-cbd4-438b-892e-57d558721390","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"cace61a5-4eb4-4f90-b570-c100909f9bea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3030/api/users/:id","description":"<p>This is a GET request and it is used to \"get\" data from an endpoint. There is no request body for a GET request, but you can use query parameters to help specify the resource you want data on (e.g., in this request, we have <code>id=1</code>).</p>\n<p>A successful GET response will have a <code>200 OK</code> status, and should include some kind of response body - for example, HTML web content or JSON data.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","users",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"0c1a9350-9845-4f73-903c-2393f89918ce","key":"id"}]}},"response":[],"_postman_id":"cace61a5-4eb4-4f90-b570-c100909f9bea"},{"name":"Update","event":[{"listen":"test","script":{"id":"9f9bb2bd-ce19-4534-a0f6-5e5e1f0a6582","exec":["pm.test(\"Successful PUT request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201, 204]);","});",""],"type":"text/javascript"}}],"id":"2f989355-305f-4aa7-a755-6823449cd57a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"alterado","type":"text"},{"key":"password","value":"123Seguro&","type":"text","disabled":true}]},"url":"http://localhost:3030/api/users/:id","description":"<p>This is a PUT request and it is used to overwrite an existing piece of data. For instance, after you create an entity with a POST request, you may want to modify that later. You can do that using a PUT request. You typically identify the entity being updated by including an identifier in the URL (eg. <code>id=1</code>).</p>\n<p>A successful PUT request typically returns a <code>200 OK</code>, <code>201 Created</code>, or <code>204 No Content</code> response code.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","users",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"41dc9c35-77ff-4ea2-974a-4dbd527c85f9","key":"id"}]}},"response":[],"_postman_id":"2f989355-305f-4aa7-a755-6823449cd57a"},{"name":"Delete data","event":[{"listen":"test","script":{"id":"c2ef1f36-c9f5-4ce1-93fe-90202c8f2019","exec":["pm.test(\"Successful DELETE request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 202, 204]);","});",""],"type":"text/javascript"}}],"id":"1f7905c0-911d-40be-94dd-571ea438d437","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3030/api/users/:id","description":"<p>This is a DELETE request, and it is used to delete data that was previously created via a POST request. You typically identify the entity being updated by including an identifier in the URL (eg. <code>id=1</code>).</p>\n<p>A successful DELETE request typically returns a <code>200 OK</code>, <code>202 Accepted</code>, or <code>204 No Content</code> response code.</p>\n","urlObject":{"protocol":"http","port":"3030","path":["api","users",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"41dc9c35-77ff-4ea2-974a-4dbd527c85f9","key":"id"}]}},"response":[],"_postman_id":"1f7905c0-911d-40be-94dd-571ea438d437"}],"id":"32572279-511b-4c93-b82e-9ed5015ba6ac","_postman_id":"32572279-511b-4c93-b82e-9ed5015ba6ac","description":""}]}