{"info":{"_postman_id":"40b9cd38-e922-4a72-8c2d-2be09f4af319","name":"Maani","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"13169243","collectionId":"40b9cd38-e922-4a72-8c2d-2be09f4af319","publishedId":"2s9YeG5rNc","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-11-29T01:20:15.000Z"},"item":[{"name":"Backend","item":[{"name":"Upload Files","id":"fd35dd91-a64e-4604-8384-2aae8c468d76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"files","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.","src":"/Users/pedramsadeghian/Downloads/IMG_0507.jpg"},{"key":"files","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.","src":"/Users/pedramsadeghian/Downloads/ssh-login.uu"},{"key":"tags","value":"login img desktop","type":"text"}]},"url":"http://localhost:8000/api/file","urlObject":{"path":["api","file"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"96a1be59-2d16-4db7-8546-e8f52130e2d8","name":"Upload Files","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"files","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.","src":"/Users/pedramsadeghian/Downloads/IMG_0507.jpg"},{"key":"files","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.","src":"/Users/pedramsadeghian/Downloads/ssh-login.uu"},{"key":"tags","value":"login img desktop","type":"text"}]},"url":"http://localhost:8000/api/file"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"91"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 29 Nov 2023 01:09:44 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": [\n        \"File IMG_0507.jpg saved successfully\",\n        \"File ssh-login.uu saved successfully\"\n    ]\n}"},{"id":"c7184031-ba95-4a7a-9ec2-56847d91a832","name":"No Space Left","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"files","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.","src":"/Users/pedramsadeghian/Downloads/IMG_0507.jpg"},{"key":"files","type":"file","src":"/Users/pedramsadeghian/Downloads/Moslem Fatahi - Naro Maryam (320).mp3"},{"key":"tags","value":"login img desktop","type":"text"}]},"url":"http://localhost:8000/api/file"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"137"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 29 Nov 2023 01:14:29 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": [\n        \"Can not save file, error: reach maximum amount of disk usage\",\n        \"Can not save file, error: reach maximum amount of disk usage\"\n    ]\n}"}],"_postman_id":"fd35dd91-a64e-4604-8384-2aae8c468d76"},{"name":"Download File","id":"0ccb53ec-c40f-4778-80a6-b2c6199dc8ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"a","type":"text"}]},"url":"http://localhost:8000/api/file","urlObject":{"path":["api","file"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"8a91d059-ffd5-419f-9b89-ad5ca54896af","name":"No Files Left","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"a","type":"text"}]},"url":"http://localhost:8000/api/file"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"26"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 29 Nov 2023 01:10:59 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"File not found\"\n}"},{"id":"40dc030b-8c83-4997-80ef-94c634078306","name":"Download Bash File","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"google-logo-transparent","type":"text"}]},"url":"http://localhost:8000/api/file"},"status":"OK","code":200,"_postman_previewlanguage":"raw","header":[{"key":"Accept-Ranges","value":"bytes"},{"key":"Content-Description","value":"File Transfer"},{"key":"Content-Disposition","value":"attachment; filename=\"generator.sh\""},{"key":"Content-Length","value":"109"},{"key":"Content-Transfer-Encoding","value":"binary"},{"key":"Content-Type","value":"application/x-sh"},{"key":"Date","value":"Wed, 29 Nov 2023 01:13:15 GMT"},{"key":"Last-Modified","value":"Wed, 29 Nov 2023 01:13:15 GMT"}],"cookie":[],"responseTime":null,"body":"#!bin/bash\nmkdir ./out\nfor i in $(seq 1 $1);\ndo\n\tpython3 main.py < ./in/input$i.txt > ./out/output$i.txt\ndone"}],"_postman_id":"0ccb53ec-c40f-4778-80a6-b2c6199dc8ba"}],"id":"8ce07882-82a1-4421-aec5-d0144caf1ef4","_postman_id":"8ce07882-82a1-4421-aec5-d0144caf1ef4","description":""},{"name":"Admin","item":[{"name":"Get Users List","id":"d64f3c89-60e2-4abc-86bc-3f296a3a0336","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/user/list","urlObject":{"path":["api","user","list"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"a0d2dcc3-17fe-4953-90df-f4bf80cf2690","name":"Get Uesrs List","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/user/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"934"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 29 Nov 2023 01:04:49 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 12884901889,\n        \"firstName\": \"Customer\",\n        \"lastName\": \"User\",\n        \"email\": \"customer@example.com\",\n        \"accessType\": \"Customer\",\n        \"createdAt\": \"2023-11-28T01:20:26.789621Z\",\n        \"updatedAt\": \"2023-11-28T23:27:38.138229Z\",\n        \"LastLoginAt\": \"2023-11-28T23:27:38.138218Z\"\n    },\n    {\n        \"id\": 12884901892,\n        \"firstName\": \"hi\",\n        \"lastName\": \"hi\",\n        \"email\": \"hi@hi.com\",\n        \"accessType\": \"Customer\",\n        \"createdAt\": \"2023-11-29T00:07:12.447752Z\",\n        \"updatedAt\": \"2023-11-29T00:07:28.905792Z\",\n        \"LastLoginAt\": \"2023-11-29T00:07:28.905784Z\"\n    },\n    {\n        \"id\": 12884901893,\n        \"firstName\": \"name\",\n        \"lastName\": \"last\",\n        \"email\": \"mail@mail.com\",\n        \"accessType\": \"Customer\",\n        \"createdAt\": \"2023-11-29T00:53:57.377527Z\",\n        \"updatedAt\": \"2023-11-29T01:03:32.805937Z\",\n        \"LastLoginAt\": \"2023-11-29T01:03:32.805929Z\"\n    },\n    {\n        \"id\": 12884901888,\n        \"firstName\": \"Admin\",\n        \"lastName\": \"User\",\n        \"email\": \"admin@example.com\",\n        \"accessType\": \"Admin\",\n        \"createdAt\": \"2023-11-28T01:20:26.778287Z\",\n        \"updatedAt\": \"2023-11-29T01:04:44.788578Z\",\n        \"LastLoginAt\": \"2023-11-29T01:04:44.788575Z\"\n    }\n]"}],"_postman_id":"d64f3c89-60e2-4abc-86bc-3f296a3a0336"},{"name":"Get Files List","id":"fd8e088e-98fe-4d00-a851-49fd6253703c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"d188ab25-af7b-4ca4-a575-5c116272b1f1","name":"Get Files List","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/file/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"303"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 29 Nov 2023 01:09:57 GMT"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Name\": \"IMG_0507.jpg\",\n        \"UUID\": \"9e6e61bcd24d389169a41e4a07345d99\",\n        \"Size\": 1677113,\n        \"TypeId\": \"image/jpeg\",\n        \"UserId\": 12884901888,\n        \"Content\": null,\n        \"Tags\": null\n    },\n    {\n        \"Name\": \"ssh-login.uu\",\n        \"UUID\": \"f70555ec823f571ff5a99000851b1427\",\n        \"Size\": 67,\n        \"TypeId\": \"text/x-uuencode\",\n        \"UserId\": 12884901888,\n        \"Content\": null,\n        \"Tags\": null\n    }\n]"}],"_postman_id":"fd8e088e-98fe-4d00-a851-49fd6253703c"}],"id":"cb87487d-7c9b-49ea-965e-05a365916bcd","_postman_id":"cb87487d-7c9b-49ea-965e-05a365916bcd","description":""},{"name":"Auth","item":[{"name":"Register","id":"52b2723e-65be-41fc-bbc2-495d3886bd1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"mail@mail.com\",\n  \"firstName\": \"name\",\n  \"lastName\": \"last\",\n  \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/register","urlObject":{"path":["api","auth","register"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"761f9bcd-7aa7-41d9-b323-4af0b3203c9a","name":"Register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"mail@mail.com\",\n  \"firstName\": \"name\",\n  \"lastName\": \"last\",\n  \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 29 Nov 2023 00:53:57 GMT"},{"key":"Content-Length","value":"212"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12884901893,\n    \"firstName\": \"name\",\n    \"lastName\": \"last\",\n    \"email\": \"mail@mail.com\",\n    \"accessType\": \"Customer\",\n    \"createdAt\": \"2023-11-29T00:53:57.377527255Z\",\n    \"updatedAt\": \"2023-11-29T00:53:57.377527713Z\",\n    \"LastLoginAt\": null\n}"}],"_postman_id":"52b2723e-65be-41fc-bbc2-495d3886bd1e"},{"name":"Login","event":[{"listen":"test","script":{"id":"12593ddc-054c-4240-9bf3-19e6919dca57","exec":["const responseJson = pm.response.json();","pm.collectionVariables.set(\"token\", responseJson.token);","console.log('Done')"],"type":"text/javascript"}}],"id":"dbef4043-c1df-467e-b513-94ecbaf9e8c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"mail@mail.com\",\n  \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/login","urlObject":{"path":["api","auth","login"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"814b79bf-f15f-4de3-85c7-713f5841163d","name":"Customer Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"mail@mail.com\",\n  \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 29 Nov 2023 01:02:34 GMT"},{"key":"Content-Length","value":"265"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"expire\": \"2023-11-29T02:02:34Z\",\n    \"token\": \"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Im1haWxAbWFpbC5jb20iLCJleHAiOjE3MDEyMjMzNTQsIm9yaWdfaWF0IjoxNzAxMjE5NzU0fQ.EuPAHbamEwLUDfaYfEw8TkyORj2fpv09__Vl5FW581RyE_JU4fYe20VuM99tSyN9DSUGh2GVv57DY_Q3GI27lQ\"\n}"},{"id":"71b89bb7-8b71-48d2-8530-8920ae0f9efe","name":"Admin Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"admin@example.com\",\n  \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 29 Nov 2023 01:04:44 GMT"},{"key":"Content-Length","value":"270"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"expire\": \"2023-11-29T02:04:44Z\",\n    \"token\": \"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFkbWluQGV4YW1wbGUuY29tIiwiZXhwIjoxNzAxMjIzNDg0LCJvcmlnX2lhdCI6MTcwMTIxOTg4NH0.QCpHrpRsJPe8E0DrCxUlS00xlL51M3kqJY50BAKXvh5FRYtAgNs49nFhvz6OENfwFFuYmw6_DcrukWFb26K-ZQ\"\n}"}],"_postman_id":"dbef4043-c1df-467e-b513-94ecbaf9e8c2"},{"name":"Logout","event":[{"listen":"test","script":{"id":"cac62cd7-4c62-4cd5-8701-062d71d1eb1e","exec":["const responseJson = pm.response.json();","pm.collectionVariables.unset(\"token\")","console.log('Done')"],"type":"text/javascript"}}],"id":"de515115-9662-4061-8b82-7fc347fc58f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:8000/api/auth/logout","urlObject":{"path":["api","auth","logout"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"cde76bda-8112-4700-ad15-298327c625b5","name":"Logout","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8000/api/auth/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 29 Nov 2023 01:02:56 GMT"},{"key":"Content-Length","value":"12"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200\n}"}],"_postman_id":"de515115-9662-4061-8b82-7fc347fc58f5"},{"name":"Refresh","id":"f7ada950-1347-43dc-bbc1-fcda7b5ab359","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:8000/api/auth/refresh","urlObject":{"path":["api","auth","refresh"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"26eccd0c-0a98-40ce-b39e-5c0ef79806ab","name":"Refresh","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8000/api/auth/refresh"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 29 Nov 2023 01:02:50 GMT"},{"key":"Content-Length","value":"265"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"expire\": \"2023-11-29T02:02:50Z\",\n    \"token\": \"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Im1haWxAbWFpbC5jb20iLCJleHAiOjE3MDEyMjMzNzAsIm9yaWdfaWF0IjoxNzAxMjE5NzcwfQ.ODJlMYmG83v4g8ro6EjneW_xxP48_v6FtNJxjmF_HQUCI080_K7axfBoOHVq-6RL-RQ6Q8cB7TSf0lafPpxS_w\"\n}"}],"_postman_id":"f7ada950-1347-43dc-bbc1-fcda7b5ab359"}],"id":"a34ba6d4-1990-4d25-93e1-38b348789642","_postman_id":"a34ba6d4-1990-4d25-93e1-38b348789642","description":""}],"event":[{"listen":"prerequest","script":{"id":"4a300cc2-5d4b-40cb-9059-7998a2bedbbf","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"243fa19d-bedf-4d17-93cb-5764c67ac53b","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"http://localhost:8000"},{"key":"token","value":""}]}