{"info":{"_postman_id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","name":"BearPost API Documentation","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"9220938","collectionId":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","publishedId":"T17Aiqfc","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-06-27T05:02:50.000Z"},"item":[{"name":"Authentication","item":[{"name":"Login","event":[{"listen":"test","script":{"id":"2a2d0a0f-34d8-4e0e-b694-bf1fe17b1e9e","exec":["var jsonData = JSON.parse(responseBody);\r","pm.environment.set(\"ACCESS_TOKEN\", jsonData.data.tokens.accessToken);\r","pm.environment.set(\"REFRESH_TOKEN\", jsonData.data.tokens.refreshToken);\r",""],"type":"text/javascript"}}],"id":"d5a2d2d6-f2fd-4682-9fe9-790d5a5be2e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"{{USER_USERNAME}}\",\r\n    \"password\": \"{{USER_PASSWORD}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/login","urlObject":{"path":["api/v1","auth","login"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"d5a2d2d6-f2fd-4682-9fe9-790d5a5be2e4"},{"name":"Refresh token","event":[{"listen":"test","script":{"id":"0b6c02ec-c54a-44cc-8111-9d0b02abbb8b","exec":["var jsonData = JSON.parse(responseBody);\r","pm.environment.set(\"ACCESS_TOKEN\", jsonData.data.accessToken);\r","pm.environment.set(\"REFRESH_TOKEN\", jsonData.data.refreshToken);"],"type":"text/javascript"}}],"id":"9e50f4cf-dd15-4083-8e11-6eee40f20557","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/auth/refresh","urlObject":{"path":["api/v1","auth","refresh"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e50f4cf-dd15-4083-8e11-6eee40f20557"},{"name":"Update user","event":[{"listen":"test","script":{"id":"a023bdd1-3eda-485f-a4e3-132f1e4a6c02","exec":["var inputData = JSON.parse(request.data);\r","pm.environment.set(\"USER_PASSWORD\", inputData.newpassword);\r",""],"type":"text/javascript"}}],"id":"f4e02d35-c658-4a3b-8351-a089ba6847e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"ENTER NEW NAME\",\r\n    \"newpassword\": \"ENTER NEW PASSWORD\",\r\n    \"oldpassword\": \"{{USER_PASSWORD}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/update","urlObject":{"path":["api/v1","auth","update"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"f4e02d35-c658-4a3b-8351-a089ba6847e9"},{"name":"Logout current user","id":"f83e05d6-b168-46db-9a50-ca2e29807cfd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/auth/logout","urlObject":{"path":["api/v1","auth","logout"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"f83e05d6-b168-46db-9a50-ca2e29807cfd"},{"name":"Logout all users","id":"92f56e62-c50a-4433-a5bf-665b4384654a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/auth/logout/all","urlObject":{"path":["api/v1","auth","logout","all"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"92f56e62-c50a-4433-a5bf-665b4384654a"},{"name":"Verify ReCaptcha Token","id":"5d9ba614-45f0-4790-9fff-443be725d0b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\": \"PASS_TOKEN_FROM_CLIENT_CAPTCHA_REQUEST\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/verify","urlObject":{"path":["api/v1","auth","verify"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"5d9ba614-45f0-4790-9fff-443be725d0b6"}],"id":"6719391d-3a88-4a70-974b-52c1eeb51e42","_postman_id":"6719391d-3a88-4a70-974b-52c1eeb51e42","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{$ACCESS_TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","name":"BearPost API Documentation","type":"collection"}}},{"name":"Users","item":[{"name":"Get all users","id":"49871c12-29a7-40b2-b2c1-0ba40b7dd110","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/users","urlObject":{"path":["api/v1","users"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"49871c12-29a7-40b2-b2c1-0ba40b7dd110"},{"name":"Get all users (detailed)","id":"68bbab6d-fe3f-47de-a9e1-139095667b15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/users/detailed","urlObject":{"path":["api/v1","users","detailed"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"68bbab6d-fe3f-47de-a9e1-139095667b15"},{"name":"Create user","id":"e53408fb-01a5-4734-8629-2db83d1e4664","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{USER_NAME}}\",\r\n    \"username\": \"{{USER_USERNAME}}\",\r\n    \"email\": \"{{USER_EMAIL}}\",\r\n    \"password\": \"{{USER_PASSWORD}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/users","urlObject":{"path":["api/v1","users"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"e53408fb-01a5-4734-8629-2db83d1e4664"},{"name":"Get user by UID","event":[{"listen":"test","script":{"id":"4ec25914-9cc2-4d34-857e-b75994306295","exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"23602b50-a8eb-4b03-91a7-edb2f04a772d","exec":["pm.variables.set(\"SEARCH_UID\", 123)\r",""],"type":"text/javascript"}}],"id":"d8f3074f-b2cc-4d5c-a5a2-0d6fb20092ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/users/{{SEARCH_UID}}","description":"<p>Change the search UID in the \"Pre-request Script\" tab.</p>\n","urlObject":{"path":["api/v1","users","{{SEARCH_UID}}"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8f3074f-b2cc-4d5c-a5a2-0d6fb20092ca"},{"name":"Get user by UID (detailed)","event":[{"listen":"test","script":{"id":"4ec25914-9cc2-4d34-857e-b75994306295","exec":[""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"23602b50-a8eb-4b03-91a7-edb2f04a772d","exec":["pm.variables.set(\"SEARCH_UID\", \"11eac3da-aada-41ed-a90a-c78dd4078c91\")\r",""],"type":"text/javascript"}}],"id":"4ac5c900-f572-4e15-9af8-2b17b16f63dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/users/{{SEARCH_UID}}/detailed","description":"<p>Change the search UID in the \"Pre-request Script\" tab.</p>\n","urlObject":{"path":["api/v1","users","{{SEARCH_UID}}","detailed"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"4ac5c900-f572-4e15-9af8-2b17b16f63dc"},{"name":"Get current user's UID","id":"65473aa0-0930-4f6a-95ae-82e1f43fdf1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/protected","urlObject":{"path":["api/v1","protected"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"65473aa0-0930-4f6a-95ae-82e1f43fdf1d"},{"name":"Create first admin","id":"56c016f8-2abd-474c-b74f-049ee1e27804","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"{{USER_NAME}}\",\r\n    \"username\": \"{{USER_USERNAME}}\",\r\n    \"password\": \"{{USER_PASSWORD}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/users/setup","description":"<p>When there are no users, this is used to create the first admin user.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{$ACCESS_TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","name":"BearPost API Documentation","type":"collection"}},"urlObject":{"path":["api/v1","users","setup"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"56c016f8-2abd-474c-b74f-049ee1e27804"},{"name":"Delete user by UID","event":[{"listen":"prerequest","script":{"id":"f66446df-150b-4bf3-a982-53bccb242186","exec":["pm.variables.set(\"USER_UID\", 123)"],"type":"text/javascript"}}],"id":"d4a8724e-ff05-447b-8262-bbfded19d0a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/users/{{USER_UID}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{$ACCESS_TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","name":"BearPost API Documentation","type":"collection"}},"urlObject":{"path":["api/v1","users","{{USER_UID}}"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4a8724e-ff05-447b-8262-bbfded19d0a1"}],"id":"f610019b-2335-4bd6-8c1e-45fcd19beff4","_postman_id":"f610019b-2335-4bd6-8c1e-45fcd19beff4","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{$ACCESS_TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","name":"BearPost API Documentation","type":"collection"}}},{"name":"Posts","item":[{"name":"Paginate","id":"516bce1d-f693-4f90-ac4d-a36d6550b371","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/posts/get?maxID=-1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{$ACCESS_TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","name":"BearPost API Documentation","type":"collection"}},"urlObject":{"path":["api/v1","posts","get"],"host":["http://localhost:8080"],"query":[{"description":{"content":"<p>maxID of the page, -1 to start</p>\n","type":"text/plain"},"key":"maxID","value":"-1"},{"disabled":true,"description":{"content":"<p>tag to filter</p>\n","type":"text/plain"},"key":"tags","value":"test"},{"disabled":true,"description":{"content":"<p>tag to filter</p>\n","type":"text/plain"},"key":"tags","value":"twelv"},{"disabled":true,"key":"getAuthorID","value":"1"}],"variable":[]}},"response":[],"_postman_id":"516bce1d-f693-4f90-ac4d-a36d6550b371"},{"name":"Paginate (w/ hidden)","id":"a8f6223f-649e-4db9-bb5a-065b3f3b1605","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/posts/admin/get?maxID=-1&tags=test&tags=twelve","urlObject":{"path":["api/v1","posts","admin","get"],"host":["http://localhost:8080"],"query":[{"description":{"content":"<p>maxID of the page, -1 to start</p>\n","type":"text/plain"},"key":"maxID","value":"-1"},{"key":"tags","value":"test"},{"key":"tags","value":"twelve"}],"variable":[]}},"response":[],"_postman_id":"a8f6223f-649e-4db9-bb5a-065b3f3b1605"},{"name":"Search for posts","id":"d531acc5-71a3-4e03-b6e8-6179e3a84849","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/posts/search?title=first","urlObject":{"path":["api/v1","posts","search"],"host":["http://localhost:8080"],"query":[{"key":"title","value":"first"}],"variable":[]}},"response":[],"_postman_id":"d531acc5-71a3-4e03-b6e8-6179e3a84849"},{"name":"Get post by ID","event":[{"listen":"prerequest","script":{"id":"b733f8d0-4a34-4a93-9877-27c3a4f05da6","exec":["pm.variables.set(\"POST_ID\", 2)"],"type":"text/javascript"}}],"id":"7381c661-caf7-45eb-8621-963eeb64a4f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/posts/{{POST_ID}}","description":"<p>Set post ID to get in the \"Pre-request Script\" tab.</p>\n","urlObject":{"path":["api/v1","posts","{{POST_ID}}"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"7381c661-caf7-45eb-8621-963eeb64a4f1"},{"name":"Get post by ID (w/ hidden)","event":[{"listen":"prerequest","script":{"id":"98081703-8428-46c0-a414-8cb460f02e18","exec":["pm.variables.set(\"POST_ID\", 2)"],"type":"text/javascript"}}],"id":"7bfef6a0-9ad1-48d6-84fa-a0df3fe72343","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/posts/admin/{{POST_ID}}","description":"<p>Set post ID to get in the \"Pre-request Script\" tab.</p>\n","urlObject":{"path":["api/v1","posts","admin","{{POST_ID}}"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"7bfef6a0-9ad1-48d6-84fa-a0df3fe72343"},{"name":"Get post by slug","event":[{"listen":"prerequest","script":{"id":"68188be0-3cd8-461f-ac66-0392b0e9d5ab","exec":["pm.variables.set(\"POST_SLUG\", \"YYYY/MM/SLUG\")"],"type":"text/javascript"}}],"id":"cd2d8794-3db3-45fe-a7cc-6d96aceaf2d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/posts/{{POST_SLUG}}","description":"<p>Set post slug to get in the \"Pre-request Script\" tab.</p>\n","urlObject":{"path":["api/v1","posts","{{POST_SLUG}}"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd2d8794-3db3-45fe-a7cc-6d96aceaf2d3"},{"name":"Get post by slug (w/ hidden)","event":[{"listen":"prerequest","script":{"id":"fd0fe57b-c4a7-4628-9985-a9cba648327f","exec":["pm.variables.set(\"POST_SLUG\", \"YYYY/MM/SLUG\")"],"type":"text/javascript"}}],"id":"b6d1ebbc-cd57-451c-b341-6870ed553533","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/posts/admin/{{POST_SLUG}}","description":"<p>Set post slug to get in the \"Pre-request Script\" tab.</p>\n","urlObject":{"path":["api/v1","posts","admin","{{POST_SLUG}}"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"b6d1ebbc-cd57-451c-b341-6870ed553533"},{"name":"Create post","id":"5bbb216f-f6c9-4dbb-865a-4d0aaf668542","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"title\": \"This a pass-over of the API (A little longer title)\",\r\n\t\"body\": \"This is a test post body. Blah Blah.\",\r\n\t\"tags\": [\"test\", \"post\", \"one\"],\r\n\t\"hidden\": false,\r\n\t\"subtitle\": \"This is a subtitle! Yay! (okay, a little longer this time)\",\r\n\t\"image-url\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/posts","urlObject":{"path":["api/v1","posts"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"5bbb216f-f6c9-4dbb-865a-4d0aaf668542"},{"name":"Update post","event":[{"listen":"prerequest","script":{"id":"3f92da6b-7e6b-4b2c-9bca-225282e1391c","exec":["pm.variables.set(\"POST_ID\", 13)"],"type":"text/javascript"}}],"id":"2f55e268-550e-4b5f-9718-d6fd0d3f1719","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"title\": \"This a pass-over of the API (A little longer title)\",\r\n\t\"body\": \"This is a test post body. Blah Blah.\",\r\n\t\"tags\": [\"test\", \"post\", \"ten\"],\r\n\t\"hidden\": false,\r\n\t\"subtitle\": \"This is a subtitle! Yay! (okay, a little longer this time)\",\r\n\t\"image-url\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/posts/{{POST_ID}}","description":"<p>Set post ID to update in the \"Pre-request Script\" tab.</p>\n","urlObject":{"path":["api/v1","posts","{{POST_ID}}"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f55e268-550e-4b5f-9718-d6fd0d3f1719"},{"name":"Delete post by ID","event":[{"listen":"prerequest","script":{"id":"8fa8ef8c-124d-4e38-9080-a8c92043e26e","exec":["pm.variables.set(\"POST_ID\", 12)"],"type":"text/javascript"}}],"id":"2b1ed426-36cd-492b-83d7-ddabcb96018c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/posts/delete/{{POST_ID}}","description":"<p>Set post ID to delete in the \"Pre-request Script\" tab.</p>\n","urlObject":{"path":["api/v1","posts","delete","{{POST_ID}}"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b1ed426-36cd-492b-83d7-ddabcb96018c"}],"id":"cc0a03dd-e250-4f86-a405-0abe9c7b853f","_postman_id":"cc0a03dd-e250-4f86-a405-0abe9c7b853f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{$ACCESS_TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","name":"BearPost API Documentation","type":"collection"}}},{"name":"Media","item":[{"name":"Upload image","id":"cbfe1a76-57ab-43cb-a793-cb823b8e166f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","src":"/D:/Chrome Downloads/Rotating_earth_(large).gif"}]},"url":"http://localhost:8080/api/v1/images/upload","urlObject":{"path":["api/v1","images","upload"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"cbfe1a76-57ab-43cb-a793-cb823b8e166f"},{"name":"Upload video","id":"907e0a55-984e-460f-8c2d-e48e33032531","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"FILL_ME"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"video","type":"file","src":"/D:/Chrome Downloads/Loop7f1ae9d2-1f1f-4b39-b647-d6bdb77e23b9.mp4"}]},"url":"http://localhost:8080/api/v1/videos/upload","urlObject":{"path":["api/v1","videos","upload"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"907e0a55-984e-460f-8c2d-e48e33032531"},{"name":"Get image","event":[{"listen":"prerequest","script":{"id":"288e2905-0bf4-4d16-bfab-7939b710a523","exec":["pm.variables.set(\"IMAGE_FILE\", \"SOME_IMAGE_NAME_HERE.jpg\")"],"type":"text/javascript"}}],"id":"6a69dc1e-d7fe-4982-8e36-7351f8aa454b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/assets/images/{{IMAGE_FILE}}","description":"<p>Set image file to get in the \"Pre-request Script\" tab.</p>\n","urlObject":{"path":["assets","images","{{IMAGE_FILE}}"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a69dc1e-d7fe-4982-8e36-7351f8aa454b"},{"name":"Get video","event":[{"listen":"prerequest","script":{"id":"d348770c-9513-4574-92c4-a80a0b44d971","exec":["pm.variables.set(\"VIDEO_FILE\", \"SOME_VIDEO_NAME_HERE.mp4\")"],"type":"text/javascript"}}],"id":"1afd5770-9d60-4625-965a-a094fb9d4abc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"http://localhost:8080/assets/videos/{{VIDEO_FILE}}","description":"<p>Set video file to get in the \"Pre-request Script\" tab.</p>\n","urlObject":{"path":["assets","videos","{{VIDEO_FILE}}"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"1afd5770-9d60-4625-965a-a094fb9d4abc"}],"id":"7d7639a2-a764-40e9-a6b0-93a13712b16e","_postman_id":"7d7639a2-a764-40e9-a6b0-93a13712b16e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{$ACCESS_TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","name":"BearPost API Documentation","type":"collection"}}},{"name":"Ping","id":"621b11d0-35ab-419b-9ff4-db5d09e9a259","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{$ACCESS_TOKEN}}"}]},"isInherited":true,"source":{"_postman_id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","id":"31bcf36b-1e5b-4768-a94c-ec880b8a49d3","name":"BearPost API Documentation","type":"collection"}},"urlObject":{"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"621b11d0-35ab-419b-9ff4-db5d09e9a259"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{$ACCESS_TOKEN}}"}]}},"event":[{"listen":"prerequest","script":{"id":"f43ff992-05d4-4601-ad12-0af11df18020","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bdfca747-4ccb-47a7-a4c4-e033d0f71448","type":"text/javascript","exec":[""]}}],"variable":[{"key":"BASE_URL","value":"http://localhost:8080"},{"key":"ACCESS_TOKEN","value":"FILL_ME"},{"key":"REFRESH_TOKEN","value":"FILL_ME"},{"key":"API_PREFIX","value":"api/v1"}]}