{"info":{"_postman_id":"452833d3-c8fc-49c0-b8da-65e5b22aef8b","name":"Ensinio - Base Service & Repository Pattern","description":"<html><head></head><body><p>Api base para manipular o gerenciamento de uma entidade chamada URL que possui apenas uma coluna: url.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"8987461","collectionId":"452833d3-c8fc-49c0-b8da-65e5b22aef8b","publishedId":"2s93eR5GL8","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-04-27T11:27:28.000Z"},"item":[{"name":"Create","event":[{"listen":"test","script":{"id":"2565e127-ac20-4522-8c9c-735bbcb2ba98","exec":["var jsonData = JSON.parse(responseBody);\r","pm.collectionVariables.set('url_id', jsonData.id)\r",""],"type":"text/javascript"}}],"id":"cc6b66ce-b85d-45be-adb2-66a0434a4c31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"url","value":"https://teste.com","type":"text"}]},"url":"http://localhost:8000/api/urls","urlObject":{"protocol":"http","port":"8000","path":["api","urls"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3918823b-2c5b-4180-993e-86a2052ad8c4","name":"Create - 200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"url","value":"https://teste.com","type":"text"}]},"url":"http://localhost:8000/api/urls"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 27 Apr 2023 11:16:29 GMT"},{"key":"Date","value":"Thu, 27 Apr 2023 11:16:29 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"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    \"url\": \"https://teste.com\",\n    \"id\": 1\n}"},{"id":"698a1beb-860e-4327-916a-20e9aa47fabf","name":"Create - 422","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"url","value":"teste.com","type":"text"}]},"url":"http://localhost:8000/api/urls"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 27 Apr 2023 11:17:03 GMT"},{"key":"Date","value":"Thu, 27 Apr 2023 11:17:03 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"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\": \"The url field must be a valid URL.\",\n    \"errors\": {\n        \"url\": [\n            \"The url field must be a valid URL.\"\n        ]\n    }\n}"}],"_postman_id":"cc6b66ce-b85d-45be-adb2-66a0434a4c31"},{"name":"Read","id":"a083eb2e-2d8c-4f08-8aff-660327b67ea9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8000/api/urls/1","urlObject":{"protocol":"http","port":"8000","path":["api","urls","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b292a4cd-d6c5-4c28-aece-c752a969eae0","name":"Read - 200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8000/api/urls/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 27 Apr 2023 11:18:34 GMT"},{"key":"Date","value":"Thu, 27 Apr 2023 11:18:34 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"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    \"id\": 1,\n    \"url\": \"https://teste.com\"\n}"},{"id":"0bcc13e2-a70c-4d8a-aa41-1d7ae378b638","name":"Read - 404","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8000/api/urls/4"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 27 Apr 2023 11:19:35 GMT"},{"key":"Date","value":"Thu, 27 Apr 2023 11:19:35 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"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\": \"No query results for model [App\\\\Models\\\\Url] 4\"\n}"}],"_postman_id":"a083eb2e-2d8c-4f08-8aff-660327b67ea9"},{"name":"Update","id":"6b675dca-4766-4685-b3f8-93eeafa27cc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"url","value":"https://teste.cloud","type":"text"}]},"url":"http://localhost:8000/api/urls/1","urlObject":{"protocol":"http","port":"8000","path":["api","urls","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a0439f56-c39a-442e-8de7-e72b723fae10","name":"Update - 200","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"url","value":"https://teste.cloud","type":"text"}]},"url":"http://localhost:8000/api/urls/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 27 Apr 2023 11:20:34 GMT"},{"key":"Date","value":"Thu, 27 Apr 2023 11:20:34 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"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\": 1,\n    \"url\": \"https://teste.cloud\"\n}"},{"id":"1870f40f-9fe7-4921-abad-141f29beeaa7","name":"Update - 404","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"url","value":"https://teste.cloud","type":"text"}]},"url":"http://localhost:8000/api/urls/4"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 27 Apr 2023 11:21:37 GMT"},{"key":"Date","value":"Thu, 27 Apr 2023 11:21:37 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"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\": \"No query results for model [App\\\\Models\\\\Url] 4\"\n}"},{"id":"39967840-6473-4d6e-a812-25fe48c212ad","name":"Update - 422","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"url","value":"teste.cloud","type":"text"}]},"url":"http://localhost:8000/api/urls/1"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 27 Apr 2023 11:20:54 GMT"},{"key":"Date","value":"Thu, 27 Apr 2023 11:20:54 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"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\": \"The url field must be a valid URL.\",\n    \"errors\": {\n        \"url\": [\n            \"The url field must be a valid URL.\"\n        ]\n    }\n}"}],"_postman_id":"6b675dca-4766-4685-b3f8-93eeafa27cc9"},{"name":"Delete","id":"b8697c60-7563-4d2f-9f88-1aca1106c770","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8000/api/urls/1","urlObject":{"protocol":"http","port":"8000","path":["api","urls","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"87bb9a27-7eba-4f57-97da-26932fc590fe","name":"Delete - 200","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8000/api/urls/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 27 Apr 2023 11:22:48 GMT"},{"key":"Date","value":"Thu, 27 Apr 2023 11:22:48 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"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\": 1,\n    \"url\": \"https://teste.cloud\"\n}"},{"id":"f4042e18-badc-41e3-88a8-9c779a18b93a","name":"Delete - 404","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8000/api/urls/4"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 27 Apr 2023 11:23:16 GMT"},{"key":"Date","value":"Thu, 27 Apr 2023 11:23:16 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.4"},{"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\": \"No query results for model [App\\\\Models\\\\Url] 4\"\n}"}],"_postman_id":"b8697c60-7563-4d2f-9f88-1aca1106c770"}],"event":[{"listen":"prerequest","script":{"id":"7c45b141-e8b2-4996-bc80-5ebcabb9c3f6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d17abd23-adeb-4fea-9e17-7b5a9ae5043c","type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"]}}],"variable":[{"key":"url_id","value":"1","type":"string"}]}