{"info":{"_postman_id":"5effa5c5-7276-409a-93d1-68e64a3e83df","name":"Loco Starter","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"34752358","collectionId":"5effa5c5-7276-409a-93d1-68e64a3e83df","publishedId":"2sA3QmEF5q","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-05-20T07:24:14.000Z"},"item":[{"name":"_Ping","id":"7a20339a-37a6-4df5-ab7e-888b446e21e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/_ping","urlObject":{"protocol":"http","port":"3000","path":["api","_ping"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7a2699b9-3782-4303-a64e-13616c8d0a3a","name":"_Ping","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/_ping"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"11"},{"key":"x-powered-by","value":"loco.rs"},{"key":"vary","value":"origin, access-control-request-method, access-control-request-headers"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"*"},{"key":"date","value":"Mon, 20 May 2024 07:14:47 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"ok\": true\n}"}],"_postman_id":"7a20339a-37a6-4df5-ab7e-888b446e21e6"},{"name":"User Registration","id":"381cde20-b9ba-46f5-b512-8b4b10860007","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Billy\",\n    \"email\": \"cwchan.billy@gmail.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/register","urlObject":{"protocol":"http","port":"3000","path":["api","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c716f4ca-f410-4a3e-b08c-5dd612727d65","name":"User Registration","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Billy\",\n    \"email\": \"cwchan.billy@gmail.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"4"},{"key":"x-powered-by","value":"loco.rs"},{"key":"vary","value":"origin, access-control-request-method, access-control-request-headers"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"*"},{"key":"date","value":"Mon, 20 May 2024 07:42:31 GMT"}],"cookie":[],"responseTime":null,"body":"null"}],"_postman_id":"381cde20-b9ba-46f5-b512-8b4b10860007"},{"name":"User Login","id":"5fe912b9-fa5d-4cc8-91e9-04d6c308edc4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"cwchan.billy@gmail.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/login","urlObject":{"protocol":"http","port":"3000","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9f84c8d1-6dba-4d64-9c04-9ff3fe3e4b47","name":"User Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"cwchan.billy@gmail.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"299"},{"key":"x-powered-by","value":"loco.rs"},{"key":"vary","value":"origin, access-control-request-method, access-control-request-headers"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"*"},{"key":"date","value":"Mon, 20 May 2024 07:42:43 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJwaWQiOiIxMWQwMWFmMy02ZmUyLTQ0ZjMtODlmMC1jMDJjZWMzOTc0MWQiLCJleHAiOjE3MTY3OTU3NjR9.i1OElxy33rkorkxk6QpTG1Kg4_Q8O0jqBJ2i82nltkcQYZsLmSSnrxtdtlfdvV0ccJ3hQA3JoY9L13cjz2uSCw\",\n    \"pid\": \"11d01af3-6fe2-44f3-89f0-c02cec39741d\",\n    \"name\": \"Billy\",\n    \"is_verified\": true\n}"}],"_postman_id":"5fe912b9-fa5d-4cc8-91e9-04d6c308edc4"},{"name":"User Info","id":"734e2f40-2f61-49d4-98c0-044489a45b9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/user/current","urlObject":{"protocol":"http","port":"3000","path":["api","user","current"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"eee8e89d-a84d-4015-a823-ef5e2b8e4c6b","name":"User Info","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/user/current"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"94"},{"key":"x-powered-by","value":"loco.rs"},{"key":"vary","value":"origin, access-control-request-method, access-control-request-headers"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"*"},{"key":"date","value":"Mon, 20 May 2024 08:19:15 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"pid\": \"11d01af3-6fe2-44f3-89f0-c02cec39741d\",\n    \"name\": \"Billy\",\n    \"email\": \"cwchan.billy@gmail.com\"\n}"}],"_postman_id":"734e2f40-2f61-49d4-98c0-044489a45b9d"},{"name":"Create Note","id":"1cc18094-f777-4457-8404-a90150635b05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Getting Started with Loco & SeaORM\",\n    \"content\": \"In this tutorial, we would create an REST notepad backend starting from scratch and adding a new REST endpoint to handle file uploads.\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/notes","urlObject":{"protocol":"http","port":"3000","path":["api","notes"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"19280fda-f707-4cf4-bd6f-bbe4b91ba5eb","name":"Create Note","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Getting Started with Loco & SeaORM\",\n    \"content\": \"In this tutorial, we would create an REST notepad backend starting from scratch and adding a new REST endpoint to handle file uploads.\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/notes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"284"},{"key":"x-powered-by","value":"loco.rs"},{"key":"vary","value":"origin, access-control-request-method, access-control-request-headers"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"*"},{"key":"date","value":"Mon, 20 May 2024 08:43:45 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"created_at\": \"2024-05-20T08:43:45.408449\",\n    \"updated_at\": \"2024-05-20T08:43:45.408449\",\n    \"id\": 1,\n    \"title\": \"Getting Started with Loco & SeaORM\",\n    \"content\": \"In this tutorial, we would create an REST notepad backend starting from scratch and adding a new REST endpoint to handle file uploads.\"\n}"}],"_postman_id":"1cc18094-f777-4457-8404-a90150635b05"},{"name":"List Notes","id":"2ca445da-060d-4e45-ab52-895756c92793","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/notes","urlObject":{"protocol":"http","port":"3000","path":["api","notes"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a174f301-bb2c-4457-8396-8b34229f9e4a","name":"List Notes","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/notes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"485"},{"key":"x-powered-by","value":"loco.rs"},{"key":"vary","value":"origin, access-control-request-method, access-control-request-headers"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"*"},{"key":"date","value":"Mon, 20 May 2024 08:45:59 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"created_at\": \"2024-05-20T08:43:45.408449\",\n        \"updated_at\": \"2024-05-20T08:43:45.408449\",\n        \"id\": 1,\n        \"title\": \"Getting Started with Loco & SeaORM\",\n        \"content\": \"In this tutorial, we would create an REST notepad backend starting from scratch and adding a new REST endpoint to handle file uploads.\"\n    },\n    {\n        \"created_at\": \"2024-05-20T08:45:38.973130\",\n        \"updated_at\": \"2024-05-20T08:45:38.973130\",\n        \"id\": 2,\n        \"title\": \"Introducing SeaORM X\",\n        \"content\": \"SeaORM X is built on top of SeaORM with support for SQL Server\"\n    }\n]"}],"_postman_id":"2ca445da-060d-4e45-ab52-895756c92793"},{"name":"Get Notes","id":"e45f3417-fe7c-4fc8-a26d-d747eacb881c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/notes/2","urlObject":{"protocol":"http","port":"3000","path":["api","notes","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"090166d6-6510-4ca1-9ef1-586134dc98c3","name":"Get Notes","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/notes/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"198"},{"key":"x-powered-by","value":"loco.rs"},{"key":"vary","value":"origin, access-control-request-method, access-control-request-headers"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"*"},{"key":"date","value":"Mon, 20 May 2024 09:18:14 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"created_at\": \"2024-05-20T08:45:38.973130\",\n    \"updated_at\": \"2024-05-20T08:45:38.973130\",\n    \"id\": 2,\n    \"title\": \"Introducing SeaORM X\",\n    \"content\": \"SeaORM X is built on top of SeaORM with support for SQL Server\"\n}"}],"_postman_id":"e45f3417-fe7c-4fc8-a26d-d747eacb881c"},{"name":"Upload Files","id":"64842d33-9524-4eee-9e08-b576d9e82fce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file_1","type":"file","src":"postman-cloud:///1ef16942-27f6-4580-9ef2-d61b9e890ecd"},{"key":"file_2","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/billy/Downloads/SeaORM banner (1).png"],"src":"postman-cloud:///1ef16942-7901-46a0-879a-1dbd5fa006cf"}]},"url":"http://localhost:3000/api/files/upload/1","urlObject":{"protocol":"http","port":"3000","path":["api","files","upload","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8dbce613-267f-42f7-97a0-96c33f385060","name":"Upload Files","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file_1","type":"file","src":"postman-cloud:///1ef16942-27f6-4580-9ef2-d61b9e890ecd"},{"key":"file_2","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/billy/Downloads/SeaORM banner (1).png"],"src":"postman-cloud:///1ef16942-7901-46a0-879a-1dbd5fa006cf"}]},"url":"http://localhost:3000/api/files/upload/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"387"},{"key":"x-powered-by","value":"loco.rs"},{"key":"vary","value":"origin, access-control-request-method, access-control-request-headers"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"*"},{"key":"date","value":"Mon, 20 May 2024 10:32:55 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"created_at\": \"2024-05-20T10:32:55.810584\",\n        \"updated_at\": \"2024-05-20T10:32:55.810584\",\n        \"id\": 1,\n        \"notes_id\": 1,\n        \"file_path\": \"20240520_183255_eb07c11d-aa13-4834-bc11-7bf84dc3c986/SeaORM banner.png\"\n    },\n    {\n        \"created_at\": \"2024-05-20T10:32:55.816967\",\n        \"updated_at\": \"2024-05-20T10:32:55.816967\",\n        \"id\": 2,\n        \"notes_id\": 1,\n        \"file_path\": \"20240520_183255_c9a37b9b-b039-4858-9fba-f4936979379c/SeaORM banner (1).png\"\n    }\n]"}],"_postman_id":"64842d33-9524-4eee-9e08-b576d9e82fce"},{"name":"List Files","id":"1d7a83a7-de89-4b72-9352-0dcbcf10b7e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/files/list/1","urlObject":{"protocol":"http","port":"3000","path":["api","files","list","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3cbde67d-5399-450d-9baa-8a9538450532","name":"List Files","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/files/list/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"387"},{"key":"x-powered-by","value":"loco.rs"},{"key":"vary","value":"origin, access-control-request-method, access-control-request-headers"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"*"},{"key":"date","value":"Mon, 20 May 2024 10:34:57 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"created_at\": \"2024-05-20T10:32:55.810584\",\n        \"updated_at\": \"2024-05-20T10:32:55.810584\",\n        \"id\": 1,\n        \"notes_id\": 1,\n        \"file_path\": \"20240520_183255_eb07c11d-aa13-4834-bc11-7bf84dc3c986/SeaORM banner.png\"\n    },\n    {\n        \"created_at\": \"2024-05-20T10:32:55.816967\",\n        \"updated_at\": \"2024-05-20T10:32:55.816967\",\n        \"id\": 2,\n        \"notes_id\": 1,\n        \"file_path\": \"20240520_183255_c9a37b9b-b039-4858-9fba-f4936979379c/SeaORM banner (1).png\"\n    }\n]"}],"_postman_id":"1d7a83a7-de89-4b72-9352-0dcbcf10b7e6"},{"name":"View Files","id":"dd87064c-dba1-41c5-9f5a-a4d3ed656070","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3000/api/files/view/5","urlObject":{"protocol":"http","port":"3000","path":["api","files","view","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd87064c-dba1-41c5-9f5a-a4d3ed656070"}],"event":[{"listen":"prerequest","script":{"id":"50d320a4-df42-4206-8f81-0e5a8774b811","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"ac64c008-9273-4f5f-a2ef-fee6bdc25c6e","type":"text/javascript","packages":{},"exec":[""]}}]}