{"info":{"_postman_id":"41339c7b-e810-4d0f-9394-bf769210ad57","name":"Django Blog REST APIs","description":"<html><head></head><body><p>Documentation for my Blog app's REST APIs built using djangorestframework.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"28324707","collectionId":"41339c7b-e810-4d0f-9394-bf769210ad57","publishedId":"2s93zH1eJ9","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-07-08T19:15:17.000Z"},"item":[{"name":"Blog app homepage","id":"5ebc2361-7f8d-4075-9288-56cc4fe449dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/","description":"<p>Basic homepage for the entire app.</p>\n","urlObject":{"protocol":"http","port":"8000","path":[""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ebc2361-7f8d-4075-9288-56cc4fe449dd"},{"name":"User registration","id":"61c5d339-4c1e-4071-b83f-626de7c03a2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"email@email.com\",\r\n    \"user_name\": \"user_name\",\r\n    \"full_name\": \"full_name\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/user/register/","description":"<p>Endpoint for user registration.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","user","register",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"61c5d339-4c1e-4071-b83f-626de7c03a2a"},{"name":"User login","id":"7e84a7ae-d5b1-448a-af0c-e2786533a075","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"email@email.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/user/login/","description":"<p>Endpoint for user login.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","user","login",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e84a7ae-d5b1-448a-af0c-e2786533a075"},{"name":"Token verification","id":"a249466c-55f2-41c8-b376-76f00106d659","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"token\": \"your-access-token\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/token/verify/","description":"<p>Endpoint for verifying tokens.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","token","verify",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a249466c-55f2-41c8-b376-76f00106d659"},{"name":"All blogs","id":"19463a8b-29b3-40da-98e4-1c084a89e4cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/blog/home/","description":"<p>Endpoint for viewing all blogs, no auth needed.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","blog","home",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"19463a8b-29b3-40da-98e4-1c084a89e4cc"},{"name":"User owned blogs","id":"7e24c6f5-cf11-44b2-adae-6a4a438018b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/blog/list/","description":"<p>Endpoint for viewing blogs authored by the logged in user.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","blog","list",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e24c6f5-cf11-44b2-adae-6a4a438018b7"},{"name":"Blog by ID","id":"a10157ec-0fe8-4802-8f93-7d43f705a02e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/blog/3/","description":"<p>Endpoint for fetching blogs by ID.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","blog","3",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a10157ec-0fe8-4802-8f93-7d43f705a02e"},{"name":"Blog by slug","id":"57901ebc-6e28-4f3c-a6c5-b1a1bd07eadd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/blog/param_search/?slug=django-is-simple","description":"<p>Endpoint for fetching blogs by slug.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","blog","param_search",""],"host":["localhost"],"query":[{"key":"slug","value":"django-is-simple"}],"variable":[]}},"response":[],"_postman_id":"57901ebc-6e28-4f3c-a6c5-b1a1bd07eadd"},{"name":"Blog by hashtag","id":"d026f1ba-d436-4c89-b114-556ad44249ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/api/blog/hashtag/?search=django","description":"<p>Endpoint for fetching blogs by hashtag.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","blog","hashtag",""],"host":["localhost"],"query":[{"key":"search","value":"django"}],"variable":[]}},"response":[],"_postman_id":"d026f1ba-d436-4c89-b114-556ad44249ca"},{"name":"Blog create","id":"962c088e-c477-4e39-a1d2-afde0004a4fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"category\": 8,\r\n    \"title\": \"FAIR launches audiocraft\",\r\n    \"excerpt\": \"FAIR launches new audio framework\",\r\n    \"content\": \"Facebook AI Research launches audiocraft.\",\r\n    \"slug\": \"fair-launches-audiocraft\",\r\n    \"status\": \"published\",\r\n    \"hashtags\": \"#fair #audiocraft\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/blog/create/","description":"<p>Endpoint for creating a new blog.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","blog","create",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"962c088e-c477-4e39-a1d2-afde0004a4fb"},{"name":"Blog update","id":"fbfc16c9-dce6-4362-8ebe-d9f111d9b889","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"category\": 8,\r\n    \"title\": \"FAIR launches audiocraft\",\r\n    \"excerpt\": \"FAIR launches new audio framework\",\r\n    \"content\": \"Facebook AI Research launches audiocraft. This allows to create fun applications with sounds.\",\r\n    \"slug\": \"fair-launches-audiocraft\",\r\n    \"status\": \"published\",\r\n    \"hashtags\": \"#fair #audicraft\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/blog/update/5/","description":"<p>Endpoint for updating existing blogs.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","blog","update","5",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"fbfc16c9-dce6-4362-8ebe-d9f111d9b889"},{"name":"Blog delete","id":"9b4d6dc2-e7a4-4c82-9ed1-12024b5a8bf2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/blog/delete/5/","description":"<p>Endpoint for deleting blogs.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","blog","delete","5",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9b4d6dc2-e7a4-4c82-9ed1-12024b5a8bf2"},{"name":"User logout","id":"7efcc9b1-1dbc-4dcf-b2c7-1e94af7a549e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"refresh\": \"your-refresh-token\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/user/logout/","description":"<p>Endpoint for user logout.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","user","logout",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7efcc9b1-1dbc-4dcf-b2c7-1e94af7a549e"}]}