{"info":{"_postman_id":"57c86974-6ae5-452e-9c68-cb074945b05c","name":"Crypto Price Tracker","description":"<html><head></head><body><p>StartFragment</p>\n<p>This collection allows users to create alerts for crypo token prices. It sends email notification when price of the token hits the target value. It provides auth api for creating new users and signing in.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13627665","collectionId":"57c86974-6ae5-452e-9c68-cb074945b05c","publishedId":"2s8YzUwgMu","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-12-13T05:43:53.000Z"},"item":[{"name":"auth","item":[{"name":"signup","id":"c7356ab4-ab5a-4e69-83cc-8d2034b0ac9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"new_user123","description":"<p>Unique Username</p>\n","type":"text"},{"key":"password","value":"password123","description":"<p>Alpanumeric Password</p>\n","type":"text"},{"key":"email","value":"test@test.com","description":"<p>Valid Email ID</p>\n","type":"text"}]},"url":"http://127.0.0.1:8080/auth/signup","description":"<p>Create new user</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"7b457858-b2ed-43b7-b058-e5d9cecb28a7","id":"7b457858-b2ed-43b7-b058-e5d9cecb28a7","name":"auth","type":"folder"}},"urlObject":{"protocol":"http","port":"8080","path":["auth","signup"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"bceacd99-c45a-41bc-85d0-079e03750cb6","name":"signup","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"new_user123","description":"Unique Username","type":"text"},{"key":"password","value":"password123","description":"Alpanumeric Password","type":"text"},{"key":"email","value":"test@test.com","description":"Valid Email ID","type":"text"}]},"url":"http://127.0.0.1:8080/auth/signup"},"status":"Created","code":201,"_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"},{"key":"ETag","value":"W/\"00fb48975714e7eec20d5dee7fc80682\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"eba520a3-e7d3-4396-a1b3-3140d96e478a"},{"key":"X-Runtime","value":"0.245510"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"msg\": \"Created User\",\n    \"data\": {\n        \"id\": 2,\n        \"username\": \"new_user123\",\n        \"password_digest\": \"$2a$12$5YZ8Vxepa.q4BaH3kOF5TuZZt8nW1T3h6bTGtXYVDqS10CR0Qf.Oi\",\n        \"created_at\": \"2022-12-13T05:03:36.037Z\",\n        \"updated_at\": \"2022-12-13T05:03:36.037Z\",\n        \"email\": \"test@test.com\"\n    }\n}"}],"_postman_id":"c7356ab4-ab5a-4e69-83cc-8d2034b0ac9e"},{"name":"login","id":"b4a14ffe-ea2c-40c1-96fd-5af0313fa036","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://127.0.0.1:3000/auth/login?username=new_user&password=password123","description":"<p>Generate JWT token for existing user</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"7b457858-b2ed-43b7-b058-e5d9cecb28a7","id":"7b457858-b2ed-43b7-b058-e5d9cecb28a7","name":"auth","type":"folder"}},"urlObject":{"protocol":"http","port":"3000","path":["auth","login"],"host":["127","0","0","1"],"query":[{"description":{"content":"<p>Username of existing user</p>\n","type":"text/plain"},"key":"username","value":"new_user"},{"description":{"content":"<p>Password</p>\n","type":"text/plain"},"key":"password","value":"password123"}],"variable":[]}},"response":[{"id":"0392c1ce-8f56-47e5-a4e0-a868a29b78e0","name":"login","originalRequest":{"method":"POST","header":[],"url":{"raw":"http://127.0.0.1:8080/auth/login?username=new_user&password=password123","protocol":"http","host":["127","0","0","1"],"port":"8080","path":["auth","login"],"query":[{"key":"username","value":"new_user","description":"Username of existing user"},{"key":"password","value":"password123","description":"Password"}]}},"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"},{"key":"ETag","value":"W/\"5687db58577fa6c528c5c0940edc089f\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"c580d631-339d-4ab0-ae53-30b5d8fd7a2c"},{"key":"X-Runtime","value":"0.448205"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"msg\": \"Logged in Successfully\",\n    \"data\": {\n        \"token\": \"token\",\n        \"exp\": \"12-14-2022 05:04\",\n        \"username\": \"new_user\"\n    }\n}"}],"_postman_id":"b4a14ffe-ea2c-40c1-96fd-5af0313fa036"}],"id":"7b457858-b2ed-43b7-b058-e5d9cecb28a7","description":"<p>Login and signup</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"3f30f24d-e674-49b1-925c-4c64b42d9044","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"84d32e0a-7b91-4cce-b1e8-d98d988e2da7","type":"text/javascript","exec":[""]}}],"_postman_id":"7b457858-b2ed-43b7-b058-e5d9cecb28a7"},{"name":"alerts","item":[{"name":"create","id":"849fe814-f39c-4f1e-807f-876b2276c959","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"symbol","value":"bitcoin","type":"text","description":"<p>Symbol of the token</p>\n"},{"key":"trigger","value":"17000","type":"text","description":"<p>Trigger value</p>\n"}]},"url":"http://127.0.0.1:8080/alerts/create","description":"<p>Create a new alert</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"09996fb6-99ca-4ffd-8888-d078e2f83902","id":"09996fb6-99ca-4ffd-8888-d078e2f83902","name":"alerts","type":"folder"}},"urlObject":{"protocol":"http","port":"8080","path":["alerts","create"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"b3f4b619-7c6b-4d50-ad8e-b6a2f6f4f587","name":"create","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"symbol","value":"bitcoin","type":"text","description":"Symbol of the token"},{"key":"trigger","value":"17000","type":"text","description":"Trigger value"}]},"url":"http://127.0.0.1:8080/alerts/create"},"status":"Created","code":201,"_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"},{"key":"ETag","value":"W/\"756ec384a6f6685052b5c25656607a09\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"7c2e346e-1755-4b6d-9a06-01ad320106f6"},{"key":"X-Runtime","value":"0.435770"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"msg\": \"Created Alert\",\n    \"data\": {\n        \"id\": 3,\n        \"trigger\": 17000,\n        \"init_price\": 17180.44,\n        \"is_active\": true,\n        \"symbol\": \"bitcoin\",\n        \"created_at\": \"2022-12-13T05:03:01.691Z\",\n        \"updated_at\": \"2022-12-13T05:03:01.691Z\",\n        \"user_id\": 1\n    }\n}"}],"_postman_id":"849fe814-f39c-4f1e-807f-876b2276c959"},{"name":"allAlerts","id":"0fcf4bb2-701a-4f9d-a420-e2acb5d5da38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"symbol","value":"bitcoin","type":"text","description":"<p>Filter by symbol, default: all</p>\n"},{"key":"is_active","value":"1","description":"<p>Filter by is_active, values: [true, false, 1, 0, all], default: all</p>\n","type":"text"}]},"url":"http://127.0.0.1:8080/alerts/allAlerts","description":"<p>Get all of the user's alerts filtered by symbol and status of the alert</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"09996fb6-99ca-4ffd-8888-d078e2f83902","id":"09996fb6-99ca-4ffd-8888-d078e2f83902","name":"alerts","type":"folder"}},"urlObject":{"protocol":"http","port":"8080","path":["alerts","allAlerts"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"12bf6f36-1dfc-4d44-9a57-ffd6a32636a9","name":"allAlerts","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"symbol","value":"bitcoin","type":"text","description":"Filter by symbol, default: all"},{"key":"is_active","value":"1","description":"Filter by is_active, values: [true, false, 1, 0, all], default: all","type":"text"}]},"url":"http://127.0.0.1:8080/alerts/allAlerts"},"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"},{"key":"ETag","value":"W/\"8048322a9a6e3975fd8d2fe77d26ecd3\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"a116c658-bfe0-44ff-b40a-acd17f385627"},{"key":"X-Runtime","value":"0.021529"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"msg\": \"Success\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"trigger\": 17000,\n            \"init_price\": 17235.05,\n            \"is_active\": true,\n            \"symbol\": \"bitcoin\",\n            \"created_at\": \"2022-12-11T06:38:51.301Z\",\n            \"updated_at\": \"2022-12-11T06:38:51.301Z\",\n            \"user_id\": 1\n        },\n        {\n            \"id\": 2,\n            \"trigger\": 17000,\n            \"init_price\": 17175.69,\n            \"is_active\": true,\n            \"symbol\": \"bitcoin\",\n            \"created_at\": \"2022-12-11T06:39:53.597Z\",\n            \"updated_at\": \"2022-12-11T06:39:53.597Z\",\n            \"user_id\": 1\n        },\n        {\n            \"id\": 3,\n            \"trigger\": 17000,\n            \"init_price\": 17180.44,\n            \"is_active\": true,\n            \"symbol\": \"bitcoin\",\n            \"created_at\": \"2022-12-13T05:03:01.691Z\",\n            \"updated_at\": \"2022-12-13T05:03:01.691Z\",\n            \"user_id\": 1\n        }\n    ]\n}"}],"_postman_id":"0fcf4bb2-701a-4f9d-a420-e2acb5d5da38"},{"name":"deleteAlert","id":"ec9e6c55-a481-4c5c-83cc-70f3b6f76790","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://127.0.0.1:8080/alerts/deleteAlert?id=2","description":"<p>Delete an alert by ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"09996fb6-99ca-4ffd-8888-d078e2f83902","id":"09996fb6-99ca-4ffd-8888-d078e2f83902","name":"alerts","type":"folder"}},"urlObject":{"protocol":"http","port":"8080","path":["alerts","deleteAlert"],"host":["127","0","0","1"],"query":[{"description":{"content":"<p>ID of the alert to delete</p>\n","type":"text/plain"},"key":"id","value":"2"}],"variable":[]}},"response":[{"id":"69e55034-b80b-42d7-8420-4e58b0c0437b","name":"deleteAlert","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"http://127.0.0.1:8080/alerts/deleteAlert?id=2","protocol":"http","host":["127","0","0","1"],"port":"8080","path":["alerts","deleteAlert"],"query":[{"key":"id","value":"2","description":"ID of the alert to delete"}]}},"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"},{"key":"ETag","value":"W/\"1da8713c70dcd5db306505b129ab63d4\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"9ce94cab-7857-4c85-bb65-6dacc004d71e"},{"key":"X-Runtime","value":"0.036481"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"msg\": \"Deleted Successfully\"\n}"}],"_postman_id":"ec9e6c55-a481-4c5c-83cc-70f3b6f76790"}],"id":"09996fb6-99ca-4ffd-8888-d078e2f83902","description":"<p>Create, Delete and Get user's alerts</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"18a92c43-bfcf-4172-b40c-c11402590160","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7649838b-efdb-4d8e-b0a0-57ca991b1ca0","type":"text/javascript","exec":[""]}}],"_postman_id":"09996fb6-99ca-4ffd-8888-d078e2f83902"}]}