{"info":{"_postman_id":"54a44f80-1d91-48a0-95db-65fa5740809f","name":"FOMO API","description":"<html><head></head><body><p>API documentation for FOMO app</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"11793590","collectionId":"54a44f80-1d91-48a0-95db-65fa5740809f","publishedId":"2sAXxMgu1q","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-10-07T00:41:54.000Z"},"item":[{"name":"Users","item":[{"name":"http://localhost:3000/api/v1/users/signup","id":"fa287921-16da-4f79-8c00-f4c1fddd55fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": {\n        \"email\": \"prueba_api@gmail.com\",\n        \"password\": \"12345678\",\n        \"password_confirmation\": \"12345678\",\n        \"name\": \"Hayao\",\n        \"last_name\": \"Miyazaki\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/signup","description":"<p>Sign up endpoint. It permits creating new users for the FOMO app.</p>\n<p>It needs an email, password, password_confirmation, name and last_name</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1fd9d211-5ea7-4230-8f95-282cd7554b84","name":"http://localhost:3000/api/v1/users/signup","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": {\n        \"email\": \"prueba_api@gmail.com\",\n        \"password\": \"12345678\",\n        \"password_confirmation\": \"12345678\",\n        \"name\": \"Hayao\",\n        \"last_name\": \"Miyazaki\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/signup"},"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-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":"authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI0MDQwZDUwZi1lZGM2LTRlYzMtODkwNC1kYjM5M2MxZWU4MjQiLCJzdWIiOiI1Iiwic2NwIjoidXNlcl9hcGlfdXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzI4MjYxODA5LCJleHAiOjE3MjgyNjkwMDl9.-F3WT1EkqCG-v7SGPrGfzny3IKrwAEMokRVcYV8n69Y"},{"key":"etag","value":"W/\"5b2d2cb9bb77b615e4266ee41c397a10\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"1775b30b-8acd-4dd1-b0ab-9ebf209352b0"},{"key":"x-runtime","value":"0.235202"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.01, sql.active_record;dur=3.76, start_transaction.active_record;dur=0.00, transaction.active_record;dur=4.58, process_action.action_controller;dur=229.23"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"106"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"code\": 200,\n        \"message\": \"Signed up successfully.\"\n    },\n    \"data\": {\n        \"id\": 5,\n        \"email\": \"prueba_api@gmail.com\"\n    }\n}"}],"_postman_id":"fa287921-16da-4f79-8c00-f4c1fddd55fa"},{"name":"http://localhost:3000/api/v1/users/login","id":"1b59e49c-23ec-4473-8773-566dc15cb2d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": {\n        \"email\": \"prueba_api@gmail.com\",\n        \"password\": \"12345678\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/login","urlObject":{"protocol":"http","port":"3000","path":["api","v1","users","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0bc8c209-9d57-421c-925b-b033b70bf532","name":"http://localhost:3000/api/v1/users/login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": {\n        \"email\": \"prueba_api@gmail.com\",\n        \"password\": \"12345678\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/users/login"},"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-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":"authorization","value":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI0MDQwZDUwZi1lZGM2LTRlYzMtODkwNC1kYjM5M2MxZWU4MjQiLCJzdWIiOiI1Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzI4MjYxODMzLCJleHAiOjE3MjgyNjkwMzN9.XGU9X6Fxor-cI9Au4ksua1E4IBCDa2IUTLHfM6S_UX0"},{"key":"etag","value":"W/\"8664a0097c45c1d7de53fb1a43f2de48\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"7c7260e4-1561-4197-b34a-7119cfb03ded"},{"key":"x-runtime","value":"0.245891"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.01, sql.active_record;dur=0.61, instantiation.active_record;dur=0.03, process_action.action_controller;dur=231.65"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"115"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": {\n        \"code\": 200,\n        \"message\": \"Logged in successfully.\",\n        \"data\": {\n            \"user\": {\n                \"id\": 5,\n                \"email\": \"prueba_api@gmail.com\"\n            }\n        }\n    }\n}"}],"_postman_id":"1b59e49c-23ec-4473-8773-566dc15cb2d7"}],"id":"5b4adb4c-26e5-4065-8d56-05f7bed6b911","_postman_id":"5b4adb4c-26e5-4065-8d56-05f7bed6b911","description":""},{"name":"Events","item":[{"name":"http://localhost:3000/api/v1/events","id":"24ca0c18-1e1b-46e1-93b4-503fe6068d73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/v1/events","urlObject":{"protocol":"http","port":"3000","path":["api","v1","events"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9cbe7f7b-f2d5-40d1-bcb6-776948b5b115","name":"http://localhost:3000/api/v1/events","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/events"},"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-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":"etag","value":"W/\"d2e71a09b4301d301e5a86e269b283a3\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"eb31b3c4-e63c-4163-9ce1-0cb2f853d24d"},{"key":"x-runtime","value":"0.032176"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.01, sql.active_record;dur=5.28, instantiation.active_record;dur=4.60, unpermitted_parameters.action_controller;dur=0.00, process_action.action_controller;dur=24.92"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"2538"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 6,\n        \"name\": \"Test Graphql\",\n        \"address\": \"direccion de evento\",\n        \"start_date\": \"2025-11-11T03:00:00.000Z\",\n        \"end_date\": \"2025-11-11T03:00:00.000Z\",\n        \"description\": \"testing testing\",\n        \"user_id\": 1,\n        \"created_at\": \"2024-10-01T23:03:29.283Z\",\n        \"updated_at\": \"2024-10-01T23:03:29.283Z\",\n        \"archived\": false\n    },\n    {\n        \"id\": 7,\n        \"name\": \"Test Graphql\",\n        \"address\": \"direccion de evento\",\n        \"start_date\": \"2025-11-11T03:00:00.000Z\",\n        \"end_date\": \"2025-11-11T03:00:00.000Z\",\n        \"description\": \"testing testing\",\n        \"user_id\": 1,\n        \"created_at\": \"2024-10-01T23:13:19.406Z\",\n        \"updated_at\": \"2024-10-01T23:13:19.406Z\",\n        \"archived\": false\n    },\n    {\n        \"id\": 9,\n        \"name\": \"Test Graphql\",\n        \"address\": \"direccion de evento\",\n        \"start_date\": \"2025-11-11T03:00:00.000Z\",\n        \"end_date\": \"2025-11-11T03:00:00.000Z\",\n        \"description\": \"testing testing\",\n        \"user_id\": 1,\n        \"created_at\": \"2024-10-01T23:18:17.821Z\",\n        \"updated_at\": \"2024-10-01T23:18:17.821Z\",\n        \"archived\": false\n    }\n]"}],"_postman_id":"24ca0c18-1e1b-46e1-93b4-503fe6068d73"},{"name":"http://localhost:3000/api/v1/events/1","id":"ebcb658d-9dda-444a-b5b7-635a1177389a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/v1/events/1","urlObject":{"protocol":"http","port":"3000","path":["api","v1","events","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"23eb7bb9-e722-4c3e-b34c-c9f9b71c328f","name":"http://localhost:3000/api/v1/events/1","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/events/1"},"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-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":"etag","value":"W/\"9d9953ce3793cb48d5b4bc6f93293a6c\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"c5d6f256-cfc0-41a3-80a6-4f621c9b9533"},{"key":"x-runtime","value":"0.017774"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.01, sql.active_record;dur=1.09, instantiation.active_record;dur=0.06, process_action.action_controller;dur=4.18"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"275"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"New Party\",\n    \"address\": \"dfkalkl;nrkeer\",\n    \"start_date\": \"2024-09-27T18:56:00.000Z\",\n    \"end_date\": \"2024-09-28T18:56:00.000Z\",\n    \"description\": \"sadokewo ejgfioew\",\n    \"user_id\": 1,\n    \"created_at\": \"2024-09-21T21:56:40.651Z\",\n    \"updated_at\": \"2024-09-21T21:56:40.651Z\",\n    \"archived\": false\n}"}],"_postman_id":"ebcb658d-9dda-444a-b5b7-635a1177389a"},{"name":"http://localhost:3000/api/v1/events","id":"6445ead5-4fbd-4adf-9c98-2ac611810d52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"event\": {\n        \"name\": \"New API Event Example\",\n        \"description\": \"A very nice day\",\n        \"address\": \"In one way street\",\n        \"start_date\": \"11/11/2030\",\n        \"end_date\": \"12/12/2030\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/events","urlObject":{"protocol":"http","port":"3000","path":["api","v1","events"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b84e548a-dced-4c28-b90c-053512925680","name":"http://localhost:3000/api/v1/events","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"event\": {\n        \"name\": \"New API Event Example\",\n        \"description\": \"A very nice day\",\n        \"address\": \"In one way street\",\n        \"start_date\": \"11/11/2030\",\n        \"end_date\": \"12/12/2030\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/events"},"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-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":"etag","value":"W/\"7ebb233dff87ed4f17089d28299d9f6e\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"210c91fb-cf98-4057-b3f8-881439d482eb"},{"key":"x-runtime","value":"0.022070"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.01, sql.active_record;dur=3.27, instantiation.active_record;dur=0.06, start_transaction.active_record;dur=0.00, transaction.active_record;dur=2.75, process_action.action_controller;dur=8.41"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"289"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 16,\n    \"name\": \"New API Event Example\",\n    \"address\": \"In one way street\",\n    \"start_date\": \"2030-11-11T00:00:00.000Z\",\n    \"end_date\": \"2030-12-12T00:00:00.000Z\",\n    \"description\": \"A very nice day\",\n    \"user_id\": 3,\n    \"created_at\": \"2024-10-06T22:10:34.708Z\",\n    \"updated_at\": \"2024-10-06T22:10:34.708Z\",\n    \"archived\": false\n}"}],"_postman_id":"6445ead5-4fbd-4adf-9c98-2ac611810d52"},{"name":"http://localhost:3000/api/v1/events/2","id":"b3748d36-bb40-4bbb-aefd-a9eff0fbeafa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"event\": {\n        \"name\": \"New API Event 2\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/events/16","urlObject":{"protocol":"http","port":"3000","path":["api","v1","events","16"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"aed62421-9a16-4d90-a8b1-8b22fb72f52e","name":"http://localhost:3000/api/v1/events/2","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"event\": {\n        \"name\": \"New API Event 2\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/events/16"},"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-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":"etag","value":"W/\"1c4c090b26b1d577ac2ab65a9449b824\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"de50521e-cc06-4414-95d1-b46c39c214b7"},{"key":"x-runtime","value":"0.021411"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.00, sql.active_record;dur=2.37, instantiation.active_record;dur=0.09, start_transaction.active_record;dur=0.00, transaction.active_record;dur=1.78, process_action.action_controller;dur=6.75"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"283"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"New API Event 2\",\n    \"user_id\": 3,\n    \"id\": 16,\n    \"address\": \"In one way street\",\n    \"start_date\": \"2030-11-11T00:00:00.000Z\",\n    \"end_date\": \"2030-12-12T00:00:00.000Z\",\n    \"description\": \"A very nice day\",\n    \"created_at\": \"2024-10-06T22:10:34.708Z\",\n    \"updated_at\": \"2024-10-06T22:14:38.982Z\",\n    \"archived\": false\n}"}],"_postman_id":"b3748d36-bb40-4bbb-aefd-a9eff0fbeafa"},{"name":"http://localhost:3000/api/v1/events/3","id":"f39987d8-5984-431a-9cf7-518569ce1c55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:3000/api/v1/events/16","urlObject":{"protocol":"http","port":"3000","path":["api","v1","events","16"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3f273ea4-8bee-4ab8-917c-44b21e6bbdcb","name":"http://localhost:3000/api/v1/events/3","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3000/api/v1/events/16"},"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-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":"etag","value":"W/\"35df10d9150ad9d252c083d14c7f2cc2\""},{"key":"cache-control","value":"max-age=0, private, must-revalidate"},{"key":"x-request-id","value":"4c4dc861-1e43-4b1d-9b22-9eb97ef1f1ab"},{"key":"x-runtime","value":"0.035292"},{"key":"server-timing","value":"start_processing.action_controller;dur=0.01, sql.active_record;dur=9.39, instantiation.active_record;dur=0.09, start_transaction.active_record;dur=0.00, transaction.active_record;dur=13.01, process_action.action_controller;dur=23.08"},{"key":"vary","value":"Origin"},{"key":"Content-Length","value":"40"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Event deleted successfully\"\n}"}],"_postman_id":"f39987d8-5984-431a-9cf7-518569ce1c55"}],"id":"7b200a53-3551-4df5-b876-f945945dd880","_postman_id":"7b200a53-3551-4df5-b876-f945945dd880","description":""}]}