{"info":{"_postman_id":"64ac232a-0239-4f89-aba5-cc3d1443e382","name":"HomeDisk","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"23280189","collectionId":"64ac232a-0239-4f89-aba5-cc3d1443e382","publishedId":"VVk9dwRk","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-09-10T19:21:57.000Z"},"item":[{"name":"Auth","item":[{"name":"Login","id":"8806b22a-c347-4e78-acd9-8466ce7c0dfe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"medzik\",\n    \"password\": \"medzik1234\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login","description":"<p>Get access token to your account.</p>\n","urlObject":{"path":["api","auth","login"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"0d4aec8f-b6a5-4ae5-a151-2546911104f8","name":"User login","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"medzik\",\n    \"password\": \"medzik1234\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"...\"\n}"}],"_postman_id":"8806b22a-c347-4e78-acd9-8466ce7c0dfe"},{"name":"Register","id":"47c9adb7-9605-4097-8619-188c2a892966","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"medzik\",\n    \"password\": \"medzik1234\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/register","description":"<p>Create a new account.</p>\n","urlObject":{"path":["api","auth","register"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"f6d5af56-669e-4be8-a61e-d2be79a90603","name":"Register new user","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"medzik\",\n    \"password\": \"medzik1234\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/auth/register"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"47c9adb7-9605-4097-8619-188c2a892966"},{"name":"Whoami","id":"6b545f08-c060-487c-a8b7-b1c2ec3bc699","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/auth/whoami","urlObject":{"path":["api","auth","whoami"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"393ff343-d149-4b68-9028-03a4f4aadf2a","name":"Whoami","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <token>","description":"Access token","type":"text"}],"url":"http://localhost:8080/api/auth/whoami"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"user\": \"medzik\"\n}"}],"_postman_id":"6b545f08-c060-487c-a8b7-b1c2ec3bc699"}],"id":"4670a0df-f49e-4da0-91ec-58654b8d0bc2","_postman_id":"4670a0df-f49e-4da0-91ec-58654b8d0bc2","description":""},{"name":"File System","item":[{"name":"Create Directory","id":"15b3fca6-b46a-4b21-9ad0-8bf8d9bc120b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/fs/createDir?path=<path>","urlObject":{"path":["api","fs","createDir"],"host":["http://localhost:8080"],"query":[{"description":{"content":"<p>Path to the directory that will be created.</p>\n","type":"text/plain"},"key":"path","value":"<path>"}],"variable":[]}},"response":[{"id":"cb09d938-ece3-4563-aac4-b59cfd392940","name":"Create Directory","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"}],"url":{"raw":"http://localhost:8080/api/fs/createDir?path=Pictures","host":["http://localhost:8080"],"path":["api","fs","createDir"],"query":[{"key":"path","value":"Pictures","description":"Path to the directory that will be created."}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"15b3fca6-b46a-4b21-9ad0-8bf8d9bc120b"},{"name":"List Directory","id":"ecd399a7-06ab-45b4-9e73-432c60b3f1d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/fs/list?path=/","urlObject":{"path":["api","fs","list"],"host":["http://localhost:8080"],"query":[{"description":{"content":"<p>Path to the directory that will be listed.</p>\n","type":"text/plain"},"key":"path","value":"/"}],"variable":[]}},"response":[{"id":"a0ae0265-db97-4280-a55a-663e33ebbc52","name":"List Directory","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"}],"url":{"raw":"http://localhost:8080/api/fs/list?path=Pictures","host":["http://localhost:8080"],"path":["api","fs","list"],"query":[{"key":"path","value":"Pictures","description":"Path to the directory that will be created."}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"dirs\": [\n        {\n            \"name\": \"videos\",\n            \"size\": \"1.3 GB\",\n            \"modified\": 1662901523\n        }\n    ],\n    \"files\": [\n        {\n            \"name\": \"image.png\",\n            \"size\": \"1.1 MB\",\n            \"modified\": 1662901533\n        }\n    ]\n}"}],"_postman_id":"ecd399a7-06ab-45b4-9e73-432c60b3f1d7"},{"name":"Upload File","id":"a3845760-8247-4bbf-84bb-bcfd50a2de05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","value":"<content>","description":"<p>File content</p>\n","type":"text"}]},"url":"http://localhost:8080/api/fs/upload?path=<path>","urlObject":{"path":["api","fs","upload"],"host":["http://localhost:8080"],"query":[{"description":{"content":"<p>Path to the directory that will be listed.</p>\n","type":"text/plain"},"key":"path","value":"<path>"}],"variable":[]}},"response":[{"id":"c1a47137-4bd9-4bd2-bcf5-12726374166a","name":"Upload File","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"file","value":"<content>","description":"File content","type":"text"}]},"url":{"raw":"http://localhost:8080/api/fs/upload?path=Pictures","host":["http://localhost:8080"],"path":["api","fs","upload"],"query":[{"key":"path","value":"Pictures","description":"Path to the directory that will be created."}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"a3845760-8247-4bbf-84bb-bcfd50a2de05"},{"name":"Delete Directory/File","id":"4a621ff1-ff7a-4730-90b1-24fb4e5029b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/fs/delete?path=<path>","urlObject":{"path":["api","fs","delete"],"host":["http://localhost:8080"],"query":[{"description":{"content":"<p>Path to the file or directory that will be deleted.</p>\n","type":"text/plain"},"key":"path","value":"<path>"}],"variable":[]}},"response":[{"id":"3710349f-08ec-4e4c-bce4-30079d1ef58f","name":"Delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"}],"url":{"raw":"http://localhost:8080/api/fs/delete?path=<path>","protocol":"http","host":["localhost"],"port":"8080","path":["api","fs","delete"],"query":[{"key":"path","value":"<path>","description":"Path to the file or directory that will be deleted."}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"4a621ff1-ff7a-4730-90b1-24fb4e5029b6"}],"id":"376408b0-9bcc-4341-b7b2-82a99ed12358","_postman_id":"376408b0-9bcc-4341-b7b2-82a99ed12358","description":""}],"event":[{"listen":"prerequest","script":{"id":"4345a447-564a-43f3-a080-a8ad1b117b2c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9a06b35d-3214-4410-b097-0060a1b3a746","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"http://localhost:8080","type":"string"},{"key":"token","value":"<token>","type":"string"},{"key":"path","value":"<path>","type":"string"}]}