{"info":{"_postman_id":"b105a15d-c7fc-4cbc-8b34-bb2d2448ea71","name":"Cubo Challenge","description":"<html><head></head><body><p><strong>baseURL:</strong> <a href=\"https://cubos-challenge.herokuapp.com/form\">https://cubos-challenge.herokuapp.com/form</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"14453564","collectionId":"b105a15d-c7fc-4cbc-8b34-bb2d2448ea71","publishedId":"Uzs42Qf7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-08-03T18:05:39.000Z"},"item":[{"name":"getData","id":"1883995a-2c7d-41d0-9dd0-c16545d82915","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://cubos-challenge.herokuapp.com/form","description":"<p>Essa requisição é responsável por buscar todas as informações que foram registradas no banco de dados.</p>\n","urlObject":{"protocol":"https","path":["form"],"host":["cubos-challenge","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"d17aa2c7-895f-45ea-a157-2eb82a933ec5","name":"getData","originalRequest":{"method":"GET","header":[],"url":"https://cubos-challenge.herokuapp.com/form"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"544"},{"key":"Etag","value":"W/\"220-M6oD94Q1cxr9qbFYwKjon6nSZjI\""},{"key":"Date","value":"Wed, 03 Aug 2022 18:00:18 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"userData\": [\n        {\n            \"id\": \"3f6d5ced-34e5-44fb-bcd1-7e45e93ec59f\",\n            \"firstName\": \"Eliza\",\n            \"lastName\": \"Souza\",\n            \"participation\": 20\n        },\n        {\n            \"id\": \"45bb17f1-586c-424f-ac09-6f8c2a862ac9\",\n            \"firstName\": \"Carlos \",\n            \"lastName\": \"Moura\",\n            \"participation\": 5\n        },\n        {\n            \"id\": \"68a616e5-14a6-4754-974e-48c119e823eb\",\n            \"firstName\": \"Hugo\",\n            \"lastName\": \"Silva\",\n            \"participation\": 20\n        },\n        {\n            \"id\": \"68c318d1-b924-4d5d-a40b-e52e4ddf50d2\",\n            \"firstName\": \"Fernanda\",\n            \"lastName\": \"Oliveira\",\n            \"participation\": 15\n        },\n        {\n            \"id\": \"d71affa7-b659-473f-9ad2-0f9e182864ee\",\n            \"firstName\": \"Anderson\",\n            \"lastName\": \"Santos\",\n            \"participation\": 40\n        }\n    ]\n}"}],"_postman_id":"1883995a-2c7d-41d0-9dd0-c16545d82915"},{"name":"postData","id":"bf680899-435a-40ee-a21b-a6056ee88ddd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n   \"firstName\": \"First name - must be a string type\", \r\n   \"lastName\": \"Las name - must be a string type\", \r\n   \"participation\": \"participation must be a number between 1 e 100\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://cubos-challenge.herokuapp.com/form","description":"<p>Esse requisição é responsável por realizar um registro no banco de dados, para isso deve-se passar os campos descritos no <code>body</code>.</p>\n","urlObject":{"protocol":"https","path":["form"],"host":["cubos-challenge","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"e789ad46-21f7-403a-99c5-616a0e7341bb","name":"postData","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n   \"firstName\": \"Layane\", \r\n   \"lastName\": \"\", \r\n   \"participation\": 23\r\n}","options":{"raw":{"language":"json"}}},"url":"https://cubos-challenge.herokuapp.com/form"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"Etag","value":"W/\"24-sBF//8z1qZjXsypvQWAvnhcWaK4\""},{"key":"Date","value":"Wed, 03 Aug 2022 17:57:27 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"All fields are required.\"\n}"}],"_postman_id":"bf680899-435a-40ee-a21b-a6056ee88ddd"},{"name":"deleteData","id":"72ad6a9c-1bb8-4c0c-b334-cb1dfd333af6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://cubos-challenge.herokuapp.com/form","description":"<p>Essa requisição é responsável por deletar todos os registros do banco de dados.</p>\n","urlObject":{"protocol":"https","path":["form"],"host":["cubos-challenge","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"d07aa428-bd47-496c-a23e-0f22dc809e1a","name":"deleteData","originalRequest":{"method":"DELETE","header":[],"url":"https://cubos-challenge.herokuapp.com/form"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"35"},{"key":"Etag","value":"W/\"23-eFhS5f4MBfhlGzqAjLFBmVNJu7Q\""},{"key":"Date","value":"Wed, 03 Aug 2022 18:00:33 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Informations deleted.\"\n}"}],"_postman_id":"72ad6a9c-1bb8-4c0c-b334-cb1dfd333af6"}]}