{"info":{"_postman_id":"d07bf2ac-f29f-4f11-aa98-22c582f855b3","name":"Wall App - API collection","description":"<html><head></head><body><p>The Wall API is a REST API that serves the backend to the Wall client.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"17493490","collectionId":"d07bf2ac-f29f-4f11-aa98-22c582f855b3","publishedId":"UVyswbBW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-04-02T18:18:54.000Z"},"item":[{"name":"Local tests (contain the endpoints to test the API locally)","item":[{"name":"User","item":[{"name":"Create user","id":"8f849392-33a3-4e20-89e2-435bc7cd0593","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"user\": {\n       \"first_name\": \"Jim\",\n        \"last_name\": \"Morrison\",\n        \"email\": \"jim_morrison@gmail.com\",\n        \"nickname\": \"Jimmo\",\n        \"password\": \"Jimpasssd\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users","description":"<p>Before creating new posts into the Wall API, a new user must create a personal register in our database. This endpoint is responsible for handling requests to insert new users to our database.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b444850f-b66b-4373-b989-d587c52c9daa","name":"Create user","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"user\": {\n        \"first_name\": \"teste\",\n        \"last_name\": \"email\",\n        \"email\": \"vitoroguimaraes@gmail.com\",\n        \"nickname\": \"vitorguima_2\",\n        \"password\": \"teste\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://wall-app-api.herokuapp.com/api/v1/user"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Sat, 02 Apr 2022 17:38:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept"},{"key":"Etag","value":"W/\"a8c2aa70f50e30013b2fce04210cd7b4\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e98c1937-d098-412a-9902-255b3df73872"},{"key":"X-Runtime","value":"0.611844"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"first_name\": \"teste\",\n    \"last_name\": \"email\",\n    \"email\": \"vitoroguimaraes@gmail.com\",\n    \"nickname\": \"vitorguima_2\",\n    \"created_at\": \"2022-04-02T17:38:47.866Z\",\n    \"updated_at\": \"2022-04-02T17:38:47.866Z\",\n    \"password_digest\": \"$2a$12$bvm.Ms61yb46JMg8SdDs.eim8rMkyokg6hfaac04AMqg5hO1Qjzg2\"\n}"}],"_postman_id":"8f849392-33a3-4e20-89e2-435bc7cd0593"},{"name":"Delete user","id":"66c7f766-b7c8-4294-b5bb-74a5ef8faabe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer <token>","type":"text"}],"url":"http://localhost:3000/api/v1/users","description":"<p>An existing user can delete it's own register by sending a request to this endpoint. All data that is accociated to the user will be deleted along this process.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c93b2e32-fc5b-415e-ba56-127131a97fe6","name":"Delete user","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <Token>","type":"text"}],"url":{"raw":"https://wall-app-api.herokuapp.com/api/v1/posts/:post_id","protocol":"https","host":["wall-app-api","herokuapp","com"],"path":["api","v1","posts",":post_id"],"variable":[{"key":"post_id","value":null}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Sat, 02 Apr 2022 17:54:37 GMT"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"c3308aa5-c5ec-44be-bdc6-a2054b2b24db"},{"key":"X-Runtime","value":"0.048434"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"66c7f766-b7c8-4294-b5bb-74a5ef8faabe"}],"id":"faf79e58-332c-40b2-bf3e-26efe1c6d1fe","description":"<p>The User endpoints are responsible for handling requests to create a new user and to delete an existing one.</p>\n","_postman_id":"faf79e58-332c-40b2-bf3e-26efe1c6d1fe"},{"name":"Authentication","item":[{"name":"Retrieve Token","id":"70a56cea-c57f-4531-8223-90882af5e572","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"devguima@gmail.com\",\n    \"password\": \"teste\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/authenticate","description":"<p>After the registration process, an user must authenticate to obtain the necessary credentials and authorizations. This endpoint will retrieve a token that must be contained on the subsequent requests that change data in our database.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","authenticate"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8a4e3eb7-122b-4444-80f2-37cf7b0f16c1","name":"Retrieve Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"email\": \"devguima@gmail.com\",\n    \"password\": \"teste\"\n}","options":{"raw":{"language":"json"}}},"url":"https://wall-app-api.herokuapp.com/api/v1/authenticate"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Sat, 02 Apr 2022 17:39:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept"},{"key":"Etag","value":"W/\"d96c0351c3a05a970159d77b9b775ec2\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e0013a89-dc0a-4eb8-8358-a64f596d2470"},{"key":"X-Runtime","value":"0.270906"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxfQ.FpeVsbBG0WVqAdt_BSOoI36XWUL-1HMJNVMhfOFLAMk\"\n}"}],"_postman_id":"70a56cea-c57f-4531-8223-90882af5e572"},{"name":"Validate Token","id":"b3c8822f-3041-4af3-85ef-1f398da832fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <Token>","type":"text"}],"url":"http://localhost:3000/api/v1/token","description":"<p>This endpoint can be used to validate the token authenticity. It will retrieve the user_id if the token is authentic.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","token"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"22c1dd5e-2dbd-4db3-b84a-acf0dd0d8876","name":"Validate Token","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxMX0.k3MhEvwgPfRfHiBDLLZBO31rMkujPCb1iGM-ux3PM3o","type":"text"}],"url":"https://wall-app-api.herokuapp.com/api/v1/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Wed, 13 Apr 2022 11:38:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"Etag","value":"W/\"ac500a27ec31c51122dfce79b076bed0\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"bf92cb5a-8e5d-4e1c-8bd6-784d4ec1a3e6"},{"key":"X-Runtime","value":"0.002501"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": 11\n}"}],"_postman_id":"b3c8822f-3041-4af3-85ef-1f398da832fb"}],"id":"0f046fa2-b2ef-4c03-8fc6-a875aeeaae9a","description":"<p>The authentication endpoint is responsible for granting the necessary credentials and authorizations to a specific user.</p>\n","_postman_id":"0f046fa2-b2ef-4c03-8fc6-a875aeeaae9a"},{"name":"Posts","item":[{"name":"Get all posts","id":"cc26c6e7-af56-4141-8292-71198440546f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3000/api/v1/posts","description":"<p>This endpoint will return a list of posts that were created by the application users.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","posts"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"dfe5078e-a637-4e89-852e-fb902faa1e33","name":"Get all posts","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://wall-app-api.herokuapp.com/api/v1/posts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Sat, 02 Apr 2022 17:39:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept"},{"key":"Etag","value":"W/\"f39cc1f4602da69be833337ab844d958\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"0f1d0c83-a5fe-484e-b34d-262772153b0e"},{"key":"X-Runtime","value":"0.012121"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"title\": \"teste postman\",\n        \"content\": \"teste postman\",\n        \"author_nickname\": \"vitorguima\",\n        \"created_at\": \"2022-03-31T02:55:35.189Z\",\n        \"updated_at\": \"2022-03-31T02:55:35.189Z\"\n    }\n]"}],"_postman_id":"cc26c6e7-af56-4141-8292-71198440546f"},{"name":"Create new post","id":"4cc39541-a9e0-410b-b974-479a339c5696","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <Token>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"teste postman\",\n    \"content\": \"teste postman\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/posts","description":"<p>This endpoint is responsible for handling requests to create new posts. To be succefully authorized, the request must contain at it's header, the token that was generated in the authentication process.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","posts"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c8102827-0e40-4db7-816d-15f27af5ef6e","name":"Create new post","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxfQ.FpeVsbBG0WVqAdt_BSOoI36XWUL-1HMJNVMhfOFLAMk","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"teste postman\",\n    \"content\": \"teste postman\"\n}","options":{"raw":{"language":"json"}}},"url":"https://wall-app-api.herokuapp.com/api/v1/posts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Sat, 02 Apr 2022 17:40:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept"},{"key":"Etag","value":"W/\"bd4fce95fb61c7ada0f43c9f29192e91\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"b8edee82-70df-4dc0-af0a-57f7602451e9"},{"key":"X-Runtime","value":"0.037117"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"title\": \"teste postman\",\n    \"content\": \"teste postman\",\n    \"created_at\": \"2022-04-02T17:40:15.883Z\",\n    \"updated_at\": \"2022-04-02T17:40:15.883Z\",\n    \"user_id\": 1\n}"}],"_postman_id":"4cc39541-a9e0-410b-b974-479a339c5696"},{"name":"Delete post","id":"34c64e0b-fd05-4294-8811-6a5993e6d4f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer <token>","type":"text"}],"url":"http://localhost:3000/api/v1/posts/:post_id","description":"<p>This endpoint is responsible for handling requests to delete an existing post. To be succefully authorized, the request must contain at it's header, the token that was generated in the authentication process.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","posts",":post_id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"post_id"}]}},"response":[{"id":"073269cf-d762-4b3b-a5c9-763e38e3ca3b","name":"Delete post","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <Token>","type":"text"}],"url":{"raw":"https://wall-app-api.herokuapp.com/api/v1/posts/:post_id","protocol":"https","host":["wall-app-api","herokuapp","com"],"path":["api","v1","posts",":post_id"],"variable":[{"key":"post_id","value":null}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Sat, 02 Apr 2022 17:54:37 GMT"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"c3308aa5-c5ec-44be-bdc6-a2054b2b24db"},{"key":"X-Runtime","value":"0.048434"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"34c64e0b-fd05-4294-8811-6a5993e6d4f6"},{"name":"Update post","id":"908ddb0b-b24e-4584-b97d-159830bf5ecb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"}],"url":"http://localhost:3000/api/v1/posts/:post_id","description":"<p>This endpoint is responsible for updating a post created by a specific user. The request must contain the user's token at it's header.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","posts",":post_id"],"host":["localhost"],"query":[{"disabled":true,"key":"","value":""}],"variable":[{"type":"any","value":null,"key":"post_id"}]}},"response":[{"id":"cd649dfe-2a52-4e3d-9b3e-aa6df26aa35f","name":"Update post","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyfQ.FZeSv9TFkWIOgGkDzwdmBj_Pdin89iXk_nJ-0_HDPzg","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"teste UPDATE\",\n    \"content\": \"teste UPDATE\"\n}"},"url":{"raw":"http://localhost:3000/api/v1/posts/:post_id","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","posts",":post_id"],"variable":[{"key":"post_id","value":"5"}]}},"status":"Created","code":201,"_postman_previewlanguage":"html","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"text/html"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"a7e654ad-3167-436e-8207-d08ee927c5a0"},{"key":"X-Runtime","value":"0.009006"},{"key":"Server-Timing","value":"start_processing.action_controller;dur=0.100341796875, sql.active_record;dur=4.25439453125, instantiation.active_record;dur=0.1201171875, process_action.action_controller;dur=7.01513671875"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"908ddb0b-b24e-4584-b97d-159830bf5ecb"},{"name":"Posts by user","id":"536c6a23-b8ce-4a5c-90ac-e8ba280736f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer  <Token>","type":"text"}],"url":"http://localhost:3000/api/v1/posts/user","description":"<p>This endpoint will retrieve a list of posts created by a specific user. The request must contain the user's token at it's header.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","posts","user"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"446572d9-20bc-4892-aec3-b7a064a40394","name":"Posts by user","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <Token>","type":"text"}],"url":"http://localhost:3000/api/v1/posts/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"6df73f0653c142d5a0acdb68b77c600a\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"51ffd208-0df5-4ce8-802d-ddda3c2e64df"},{"key":"X-Runtime","value":"0.016601"},{"key":"Server-Timing","value":"start_processing.action_controller;dur=0.0654296875, sql.active_record;dur=2.681640625, instantiation.active_record;dur=3.96337890625, process_action.action_controller;dur=14.6748046875"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 5,\n        \"title\": \"teste postman\",\n        \"content\": \"teste postman\",\n        \"created_at\": \"2022-04-05T01:20:24.661Z\",\n        \"updated_at\": \"2022-04-05T01:20:24.661Z\",\n        \"user_id\": 2\n    },\n    {\n        \"id\": 6,\n        \"title\": \"teste postman\",\n        \"content\": \"teste postman\",\n        \"created_at\": \"2022-04-05T01:20:25.791Z\",\n        \"updated_at\": \"2022-04-05T01:20:25.791Z\",\n        \"user_id\": 2\n    },\n    {\n        \"id\": 7,\n        \"title\": \"teste postman\",\n        \"content\": \"teste postman\",\n        \"created_at\": \"2022-04-05T01:20:26.745Z\",\n        \"updated_at\": \"2022-04-05T01:20:26.745Z\",\n        \"user_id\": 2\n    },\n    {\n        \"id\": 8,\n        \"title\": \"teste postman\",\n        \"content\": \"teste postman\",\n        \"created_at\": \"2022-04-05T01:20:27.446Z\",\n        \"updated_at\": \"2022-04-05T01:20:27.446Z\",\n        \"user_id\": 2\n    },\n    {\n        \"id\": 9,\n        \"title\": \"teste postman\",\n        \"content\": \"teste postman\",\n        \"created_at\": \"2022-04-05T01:20:28.048Z\",\n        \"updated_at\": \"2022-04-05T01:20:28.048Z\",\n        \"user_id\": 2\n    }\n]"}],"_postman_id":"536c6a23-b8ce-4a5c-90ac-e8ba280736f8"}],"id":"e3e1804f-d2d1-4dd0-8b55-b8b47449b542","description":"<p>The Posts endpoints are responsible for handling requests to create a new post and to delete or update an existing one.</p>\n","_postman_id":"e3e1804f-d2d1-4dd0-8b55-b8b47449b542"}],"id":"234beef9-c4a6-4ebd-9e28-a92885a0ca16","_postman_id":"234beef9-c4a6-4ebd-9e28-a92885a0ca16","description":""},{"name":"Production tests (contain the endpoints to test the API in production","item":[{"name":"User","item":[{"name":"Create user","id":"da418252-3fd1-4ac3-bcf8-b0296113aa9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"user\": {\n        \"first_name\": \"teste\",\n        \"last_name\": \"email\",\n        \"email\": \"vitoroguimaraes@gmail.com\",\n        \"nickname\": \"vitorguima_2\",\n        \"password\": \"teste\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://wall-app-api.herokuapp.com/api/v1/users","description":"<p>Before creating new posts into the Wall API, a new user must create a personal register in our database. This endpoint is responsible for handling requests to insert new users to our database.</p>\n","urlObject":{"protocol":"https","path":["api","v1","users"],"host":["wall-app-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"0c319d77-40c6-4a8d-ac03-51bb226d20a7","name":"Create user","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"user\": {\n        \"first_name\": \"teste\",\n        \"last_name\": \"email\",\n        \"email\": \"vitoroguimaraes@gmail.com\",\n        \"nickname\": \"vitorguima_2\",\n        \"password\": \"teste\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://wall-app-api.herokuapp.com/api/v1/user"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Sat, 02 Apr 2022 17:38:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept"},{"key":"Etag","value":"W/\"a8c2aa70f50e30013b2fce04210cd7b4\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e98c1937-d098-412a-9902-255b3df73872"},{"key":"X-Runtime","value":"0.611844"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"first_name\": \"teste\",\n    \"last_name\": \"email\",\n    \"email\": \"vitoroguimaraes@gmail.com\",\n    \"nickname\": \"vitorguima_2\",\n    \"created_at\": \"2022-04-02T17:38:47.866Z\",\n    \"updated_at\": \"2022-04-02T17:38:47.866Z\",\n    \"password_digest\": \"$2a$12$bvm.Ms61yb46JMg8SdDs.eim8rMkyokg6hfaac04AMqg5hO1Qjzg2\"\n}"}],"_postman_id":"da418252-3fd1-4ac3-bcf8-b0296113aa9f"},{"name":"Delete user","id":"957a966a-06cc-4494-a605-be770fffac70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer <token>","type":"text"}],"url":"https://wall-app-api.herokuapp.com/api/v1/users","description":"<p>An existing user can delete it's own register by sending a request to this endpoint. All data that is accociated to the user will be deleted along this process.</p>\n","urlObject":{"protocol":"https","path":["api","v1","users"],"host":["wall-app-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"5cac25a5-ad45-4309-bacf-d8a387a90310","name":"Delete user","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <Token>","type":"text"}],"url":{"raw":"https://wall-app-api.herokuapp.com/api/v1/posts/:post_id","protocol":"https","host":["wall-app-api","herokuapp","com"],"path":["api","v1","posts",":post_id"],"variable":[{"key":"post_id","value":null}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Sat, 02 Apr 2022 17:54:37 GMT"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"c3308aa5-c5ec-44be-bdc6-a2054b2b24db"},{"key":"X-Runtime","value":"0.048434"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"957a966a-06cc-4494-a605-be770fffac70"}],"id":"495d6ae8-4ea4-4e43-96cf-c3795a1572b4","description":"<p>The User endpoints are responsible for handling requests to create a new user and to delete an existing one.</p>\n","_postman_id":"495d6ae8-4ea4-4e43-96cf-c3795a1572b4"},{"name":"Authentication","item":[{"name":"Retrieve Token","id":"6f251e28-1d47-4cc5-abe1-d99e16c8043c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"devguima@gmail.com\",\n    \"password\": \"teste\"\n}","options":{"raw":{"language":"json"}}},"url":"https://wall-app-api.herokuapp.com/api/v1/authenticate","description":"<p>After the registration process, an user must authenticate to obtain the necessary credentials and authorizations. This endpoint will retrieve a token that must be contained on the subsequent requests that change data in our database.</p>\n","urlObject":{"protocol":"https","path":["api","v1","authenticate"],"host":["wall-app-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"2a436b1c-c0c7-4a12-8e8b-949c7db178e9","name":"Retrieve Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"email\": \"devguima@gmail.com\",\n    \"password\": \"teste\"\n}","options":{"raw":{"language":"json"}}},"url":"https://wall-app-api.herokuapp.com/api/v1/authenticate"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Sat, 02 Apr 2022 17:39:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept"},{"key":"Etag","value":"W/\"d96c0351c3a05a970159d77b9b775ec2\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e0013a89-dc0a-4eb8-8358-a64f596d2470"},{"key":"X-Runtime","value":"0.270906"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxfQ.FpeVsbBG0WVqAdt_BSOoI36XWUL-1HMJNVMhfOFLAMk\"\n}"}],"_postman_id":"6f251e28-1d47-4cc5-abe1-d99e16c8043c"},{"name":"Validate Token","id":"365db8a5-10de-4b17-8156-6094bf385797","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <Token>","type":"text"}],"url":"https://wall-app-api.herokuapp.com/api/v1/token","description":"<p>This endpoint can be used to validate the token authenticity. It will retrieve the user_id if the token is authentic.</p>\n","urlObject":{"protocol":"https","path":["api","v1","token"],"host":["wall-app-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"b9638134-e2c5-4ec2-a458-8fca12099870","name":"Validate Token","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxMX0.k3MhEvwgPfRfHiBDLLZBO31rMkujPCb1iGM-ux3PM3o","type":"text"}],"url":"https://wall-app-api.herokuapp.com/api/v1/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Wed, 13 Apr 2022 11:38:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"Etag","value":"W/\"ac500a27ec31c51122dfce79b076bed0\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"bf92cb5a-8e5d-4e1c-8bd6-784d4ec1a3e6"},{"key":"X-Runtime","value":"0.002501"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": 11\n}"}],"_postman_id":"365db8a5-10de-4b17-8156-6094bf385797"}],"id":"194dc0d9-8c43-4d67-ab07-472ee52756a7","description":"<p>The authentication endpoint is responsible for granting the necessary credentials and authorizations to a specific user.</p>\n","_postman_id":"194dc0d9-8c43-4d67-ab07-472ee52756a7"},{"name":"Posts","item":[{"name":"Get all posts","id":"d9858ee4-2bf5-4d95-9d1d-2e4c7c8e83cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://wall-app-api.herokuapp.com/api/v1/posts","description":"<p>This endpoint will return a list of posts that were created by the application users.</p>\n","urlObject":{"protocol":"https","path":["api","v1","posts"],"host":["wall-app-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"2b7d68a3-6ee2-4caf-9762-a4383c538b5a","name":"Get all posts","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://wall-app-api.herokuapp.com/api/v1/posts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Sat, 02 Apr 2022 17:39:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept"},{"key":"Etag","value":"W/\"f39cc1f4602da69be833337ab844d958\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"0f1d0c83-a5fe-484e-b34d-262772153b0e"},{"key":"X-Runtime","value":"0.012121"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"title\": \"teste postman\",\n        \"content\": \"teste postman\",\n        \"author_nickname\": \"vitorguima\",\n        \"created_at\": \"2022-03-31T02:55:35.189Z\",\n        \"updated_at\": \"2022-03-31T02:55:35.189Z\"\n    }\n]"}],"_postman_id":"d9858ee4-2bf5-4d95-9d1d-2e4c7c8e83cb"},{"name":"Create new post","id":"9a6fc68b-3a00-4a47-b954-157334752fe7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <Token>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"teste postman\",\n    \"content\": \"teste postman\"\n}","options":{"raw":{"language":"json"}}},"url":"https://wall-app-api.herokuapp.com/api/v1/posts","description":"<p>This endpoint is responsible for handling requests to create new posts. To be succefully authorized, the request must contain at it's header, the token that was generated in the authentication process.</p>\n","urlObject":{"protocol":"https","path":["api","v1","posts"],"host":["wall-app-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"007f9b27-f390-4d9b-aa6f-50aa62bbfd46","name":"Create new post","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxfQ.FpeVsbBG0WVqAdt_BSOoI36XWUL-1HMJNVMhfOFLAMk","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"teste postman\",\n    \"content\": \"teste postman\"\n}","options":{"raw":{"language":"json"}}},"url":"https://wall-app-api.herokuapp.com/api/v1/posts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Sat, 02 Apr 2022 17:40:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept"},{"key":"Etag","value":"W/\"bd4fce95fb61c7ada0f43c9f29192e91\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"b8edee82-70df-4dc0-af0a-57f7602451e9"},{"key":"X-Runtime","value":"0.037117"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"title\": \"teste postman\",\n    \"content\": \"teste postman\",\n    \"created_at\": \"2022-04-02T17:40:15.883Z\",\n    \"updated_at\": \"2022-04-02T17:40:15.883Z\",\n    \"user_id\": 1\n}"}],"_postman_id":"9a6fc68b-3a00-4a47-b954-157334752fe7"},{"name":"Delete post","id":"287ebad8-e1ef-4f7b-b1c3-aaaeb13b885b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Beared <Token>","type":"text"}],"url":"https://wall-app-api.herokuapp.com/api/v1/posts/:post_id","description":"<p>This endpoint is responsible for handling requests to delete an existing post. To be succefully authorized, the request must contain at it's header, the token that was generated in the authentication process.</p>\n","urlObject":{"protocol":"https","path":["api","v1","posts",":post_id"],"host":["wall-app-api","herokuapp","com"],"query":[],"variable":[{"type":"any","value":null,"key":"post_id"}]}},"response":[{"id":"4918314f-a553-4228-b5ac-f3bcc49c8cc0","name":"Delete post","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <Token>","type":"text"}],"url":{"raw":"https://wall-app-api.herokuapp.com/api/v1/posts/:post_id","protocol":"https","host":["wall-app-api","herokuapp","com"],"path":["api","v1","posts",":post_id"],"variable":[{"key":"post_id","value":null}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Sat, 02 Apr 2022 17:54:37 GMT"},{"key":"Content-Length","value":"0"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"c3308aa5-c5ec-44be-bdc6-a2054b2b24db"},{"key":"X-Runtime","value":"0.048434"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"287ebad8-e1ef-4f7b-b1c3-aaaeb13b885b"},{"name":"Update post","id":"12163758-406a-46b2-8586-4f63d95119ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer <Token>","type":"text"}],"url":"https://wall-app-api.herokuapp.com/api/v1/posts/:post_id","description":"<p>This endpoint is responsible for updating a post created by a specific user. The request must contain the user's token at it's header.</p>\n","urlObject":{"protocol":"https","path":["api","v1","posts",":post_id"],"host":["wall-app-api","herokuapp","com"],"query":[],"variable":[{"type":"any","value":null,"key":"post_id"}]}},"response":[{"id":"98d3412e-e8b4-4d7f-a3db-9a9eda7f922e","name":"Update post","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyfQ.FZeSv9TFkWIOgGkDzwdmBj_Pdin89iXk_nJ-0_HDPzg","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"teste UPDATE\",\n    \"content\": \"teste UPDATE\"\n}"},"url":{"raw":"http://localhost:3000/api/v1/posts/:post_id","protocol":"http","host":["localhost"],"port":"3000","path":["api","v1","posts",":post_id"],"variable":[{"key":"post_id","value":"5"}]}},"status":"Created","code":201,"_postman_previewlanguage":"html","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"text/html"},{"key":"Cache-Control","value":"no-cache"},{"key":"X-Request-Id","value":"a7e654ad-3167-436e-8207-d08ee927c5a0"},{"key":"X-Runtime","value":"0.009006"},{"key":"Server-Timing","value":"start_processing.action_controller;dur=0.100341796875, sql.active_record;dur=4.25439453125, instantiation.active_record;dur=0.1201171875, process_action.action_controller;dur=7.01513671875"},{"key":"Vary","value":"Origin"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"12163758-406a-46b2-8586-4f63d95119ed"},{"name":"Posts by user","id":"b5c40beb-dfbe-4527-ba17-5b94fcf7f810","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <Token>","type":"text"}],"url":"https://wall-app-api.herokuapp.com/api/v1/posts/user","description":"<p>This endpoint will retrieve a list of posts created by a specific user. The request must contain the user's token at it's header.</p>\n","urlObject":{"protocol":"https","path":["api","v1","posts","user"],"host":["wall-app-api","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"283163b5-3f63-41de-9d77-170cd1587038","name":"Posts by user","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <Token>","type":"text"}],"url":"http://localhost:3000/api/v1/posts/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept, Origin"},{"key":"ETag","value":"W/\"6df73f0653c142d5a0acdb68b77c600a\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"51ffd208-0df5-4ce8-802d-ddda3c2e64df"},{"key":"X-Runtime","value":"0.016601"},{"key":"Server-Timing","value":"start_processing.action_controller;dur=0.0654296875, sql.active_record;dur=2.681640625, instantiation.active_record;dur=3.96337890625, process_action.action_controller;dur=14.6748046875"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 5,\n        \"title\": \"teste postman\",\n        \"content\": \"teste postman\",\n        \"created_at\": \"2022-04-05T01:20:24.661Z\",\n        \"updated_at\": \"2022-04-05T01:20:24.661Z\",\n        \"user_id\": 2\n    },\n    {\n        \"id\": 6,\n        \"title\": \"teste postman\",\n        \"content\": \"teste postman\",\n        \"created_at\": \"2022-04-05T01:20:25.791Z\",\n        \"updated_at\": \"2022-04-05T01:20:25.791Z\",\n        \"user_id\": 2\n    },\n    {\n        \"id\": 7,\n        \"title\": \"teste postman\",\n        \"content\": \"teste postman\",\n        \"created_at\": \"2022-04-05T01:20:26.745Z\",\n        \"updated_at\": \"2022-04-05T01:20:26.745Z\",\n        \"user_id\": 2\n    },\n    {\n        \"id\": 8,\n        \"title\": \"teste postman\",\n        \"content\": \"teste postman\",\n        \"created_at\": \"2022-04-05T01:20:27.446Z\",\n        \"updated_at\": \"2022-04-05T01:20:27.446Z\",\n        \"user_id\": 2\n    },\n    {\n        \"id\": 9,\n        \"title\": \"teste postman\",\n        \"content\": \"teste postman\",\n        \"created_at\": \"2022-04-05T01:20:28.048Z\",\n        \"updated_at\": \"2022-04-05T01:20:28.048Z\",\n        \"user_id\": 2\n    }\n]"}],"_postman_id":"b5c40beb-dfbe-4527-ba17-5b94fcf7f810"}],"id":"a51e8b07-4a89-4ab4-ae89-e54beb18421f","_postman_id":"a51e8b07-4a89-4ab4-ae89-e54beb18421f","description":""}],"id":"ba8e880b-dc6d-4f73-b707-9c393711c96a","_postman_id":"ba8e880b-dc6d-4f73-b707-9c393711c96a","description":""}]}