{"info":{"_postman_id":"052cf030-e737-4ef8-b98c-712bf62ac087","name":"CRUD Cliente","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"15195822","collectionId":"052cf030-e737-4ef8-b98c-712bf62ac087","publishedId":"TzCP5mJB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-04-01T07:04:17.000Z"},"item":[{"name":"Listar clientes com filtro e paginação","id":"324f5775-ed09-474c-b0c9-9a9de5e930cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"cpf\": \"\",\r\n    \"email\": \"\",\r\n    \"nome\": \"\",\r\n    \"dataNascimento\": \"\",\r\n    \"sexo\": null,\r\n    \"sobrenome\": \"\",\r\n    \"telefone\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://albertomonteiro.dev/api/clientes/filtro?page=0&size=8&sort=id,desc","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"052cf030-e737-4ef8-b98c-712bf62ac087","id":"052cf030-e737-4ef8-b98c-712bf62ac087","name":"CRUD Cliente","type":"collection"}},"urlObject":{"protocol":"https","path":["api","clientes","filtro"],"host":["albertomonteiro","dev"],"query":[{"key":"page","value":"0"},{"key":"size","value":"8"},{"key":"sort","value":"id,desc"}],"variable":[]}},"response":[],"_postman_id":"324f5775-ed09-474c-b0c9-9a9de5e930cb"},{"name":"Criar cliente","id":"3d0db457-e237-4cfd-bd77-79813029c308","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"cpf\": \"12222222222\",\r\n    \"dataNascimento\": \"1989-04-01\",\r\n    \"email\": \"teste@teste.com\",\r\n    \"nome\": \"teste\",\r\n    \"sexo\": \"MASCULINO\",\r\n    \"sobrenome\": \"teste\",\r\n    \"telefone\": \"61678567867\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://albertomonteiro.dev/api/clientes","description":"<ul>\n<li>O CPF é do tipo único, ao tentar incluir 2 iguais vai dar erro.</li>\n<li>Todos os campos são obrigatórios</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"052cf030-e737-4ef8-b98c-712bf62ac087","id":"052cf030-e737-4ef8-b98c-712bf62ac087","name":"CRUD Cliente","type":"collection"}},"urlObject":{"protocol":"https","path":["api","clientes"],"host":["albertomonteiro","dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"3d0db457-e237-4cfd-bd77-79813029c308"},{"name":"Editar cliente","id":"b4e9e5e4-7f07-43f3-bb24-f90e56c1369e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": 2,\r\n    \"cpf\": \"11111111112\",\r\n    \"nome\": \"Travessa Accounts initiatives\",\r\n    \"sobrenome\": \"cross-platform matrix digital\",\r\n    \"dataNascimento\": \"2010-03-30\",\r\n    \"telefone\": \"11111111111\",\r\n    \"email\": \"AnaClara_Carvalho57@live.com\",\r\n    \"sexo\": \"FEMININO\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://albertomonteiro.dev/api/clientes/2","description":"<ul>\n<li>O CPF é do tipo único, ao tentar usar um que já existe, vai dar erro.</li>\n<li>Todos os campos são obrigatórios.</li>\n<li>O id tem que ser informado na URL e no Json.</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"052cf030-e737-4ef8-b98c-712bf62ac087","id":"052cf030-e737-4ef8-b98c-712bf62ac087","name":"CRUD Cliente","type":"collection"}},"urlObject":{"protocol":"https","path":["api","clientes","2"],"host":["albertomonteiro","dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4e9e5e4-7f07-43f3-bb24-f90e56c1369e"},{"name":"Apagar cliente","id":"6767e781-e321-4315-9193-1b8f47b1c342","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://albertomonteiro.dev/api/clientes/1060","description":"<ul>\n<li>O id tem que está na URL</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"052cf030-e737-4ef8-b98c-712bf62ac087","id":"052cf030-e737-4ef8-b98c-712bf62ac087","name":"CRUD Cliente","type":"collection"}},"urlObject":{"protocol":"https","path":["api","clientes","1060"],"host":["albertomonteiro","dev"],"query":[],"variable":[]}},"response":[],"_postman_id":"6767e781-e321-4315-9193-1b8f47b1c342"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"7720b903-625e-4496-9cdf-225f31845365","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0f3ab252-8695-4ad5-b6c6-25fd5dbcc493","type":"text/javascript","exec":[""]}}]}