{"info":{"_postman_id":"15b3891c-6813-4cc1-8a99-3bd471227942","name":"Sport Compass Blog - Public","description":"<html><head></head><body><p>Sport Compass.</p>\n<p>Backend Assingment.</p>\n<p>This documentation only will cover the Blog API.</p>\n<ul>\n<li><strong>Git Repository</strong> <a href=\"https://github.com/realFranco/backend_assignment_sc\">https://github.com/realFranco/backend_assignment_sc</a></li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6474278","collectionId":"15b3891c-6813-4cc1-8a99-3bd471227942","publishedId":"SzmZdLMZ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-05-02T16:01:37.000Z"},"item":[{"name":"Post","item":[{"name":"Create Post","id":"79983a74-ebc6-4551-93eb-daeef49062c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"cover_img","type":"file","src":"/home/diuble-lig/Pictures/posgresql_stuff.png"}]},"url":"http://localhost:7000/post?user_name=Franco&user_last_n=Gil&post_title=Post1&post_text=New Era.","description":"<p>Create a post using a set of params as resources.</p>\n<br />\n\n<p>Params:</p>\n<ul>\n<li>user_name: Name from the Post creator.</li>\n<li>user_last_n: Last name from the Post creator.</li>\n<li>post_title: Title that will conserve  the post, the title need to be unique.</li>\n<li>post_text: Content of the post, will no render special characters, markdown syntax, italic, black fonts etc, just \"raw text\".</li>\n</ul>\n<br />\n\n<p>Body:</p>\n<ul>\n<li>cover_img: [<em>Optional</em>] Image passed to the endpint (before approve, check the extension of the file)</li>\n</ul>\n","urlObject":{"protocol":"http","port":"7000","path":["post"],"host":["localhost"],"query":[{"key":"user_name","value":"Franco"},{"key":"user_last_n","value":"Gil"},{"key":"post_title","value":"Post1"},{"key":"post_text","value":"New Era."}],"variable":[]}},"response":[],"_postman_id":"79983a74-ebc6-4551-93eb-daeef49062c0"},{"name":"View Post","id":"44462175-e353-411c-8b77-00d3460ace79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:7000/post/Post1","description":"<p>Return the resources of a post. Post info., user info.\n<br /><br /></p>\n<p>To trigger the endpoint:\n<br /></p>\n<p><strong>GET</strong> /post/{id_title}</p>\n<br />\n\n<p><strong>Note</strong>: The title of the post may contain spaces and special characters.\nConserve the set of special characters to make a correct query.</p>\n","urlObject":{"protocol":"http","port":"7000","path":["post","Post1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"44462175-e353-411c-8b77-00d3460ace79"},{"name":"Scan Post","id":"ed1622f0-592f-432f-8071-08715f5d65d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:7000/post/","description":"<p>Return all posts and all the resources from every post.\n<br />\n<br />\n<strong>Note</strong>: <em>No exist order</em> over the way of send the content and\n<em>no exist paggination</em> on the results, this is a complete\nscan of the tables.</p>\n","urlObject":{"protocol":"http","port":"7000","path":["post",""],"host":["localhost"],"query":[{"disabled":true,"key":"limit","value":"0"}],"variable":[]}},"response":[],"_postman_id":"ed1622f0-592f-432f-8071-08715f5d65d9"},{"name":"Edit Post","event":[{"listen":"test","script":{"id":"abfbc24e-2161-4e24-b43a-8f96f259ced6","exec":[""],"type":"text/javascript"}}],"id":"515c79cf-0c09-4083-a4d9-91f22e9b36a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"cover_img","type":"file","src":"/home/diuble-lig/Pictures/yoka_en_boss_landia.jpg"}]},"url":"http://localhost:7000/post/te?title=t2&text=post edited&avaliable=true","description":"<p>Edit a post.\n<br />\n<br /></p>\n<p>To trigger the endpoint: \n<br />\n<strong>PUT</strong> /post/{title}\n<br />\n<br /></p>\n<p>Params:</p>\n<ul>\n<li>title: [<em>Optional</em>] New title of the post, need to ba another distinct. </li>\n<li>text: [<em>Optional</em>] New content of the post.</li>\n<li>avaliable: [<em>Optional</em>] The creator can also hide this post.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"7000","path":["post","te"],"host":["localhost"],"query":[{"key":"title","value":"t2"},{"key":"text","value":"post edited"},{"description":{"content":"<p>boolean</p>\n","type":"text/plain"},"key":"avaliable","value":"true"}],"variable":[]}},"response":[],"_postman_id":"515c79cf-0c09-4083-a4d9-91f22e9b36a0"},{"name":"Delete Post","id":"564940e6-81d8-49b1-b4f0-08d4e7d398f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:7000/post/Post1","description":"<p>Given title from the post, delete the Post and the \nresources asociated to him (commentary and user creator)\n<br />\n<br /></p>\n<p>To trigger the endpoint:\n<br />\n<strong>DELETE</strong> post/{id_title}\n<br />\n<br /></p>\n<p>Params:</p>\n<ul>\n<li>id_post [Not Optional]</li>\n</ul>\n","urlObject":{"protocol":"http","port":"7000","path":["post","Post1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"564940e6-81d8-49b1-b4f0-08d4e7d398f2"},{"name":"Delet All Posts","id":"b73f5e39-cb7c-44f8-936a-2b8c766ea1ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:7000/post/","description":"<p>Delete all the post and the resources contained by every post.</p>\n","urlObject":{"protocol":"http","port":"7000","path":["post",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b73f5e39-cb7c-44f8-936a-2b8c766ea1ff"}],"id":"0194908a-5531-4430-b45a-9c1a06ca0478","description":"<p>Set of endpoints that control the Post data.</p>\n","event":[{"listen":"prerequest","script":{"id":"55ea4f5e-797b-4f96-8091-45528b4cac8d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a1d9170d-4a9e-4d32-9940-5c879e7878c0","type":"text/javascript","exec":[""]}}],"_postman_id":"0194908a-5531-4430-b45a-9c1a06ca0478"},{"name":"Commentary","item":[{"name":"Create Commentary","id":"9ef57456-2523-4714-ab30-762dd783f762","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:7000/commentary?post_title=ff&comm_text=New content&user_name=commentor","description":"<p>Given 3 params. create commentary over a post.\n<br />\n<br /></p>\n<p>Params:\n</p>\n<ul>\n<li>id_user: [<em>Optional</em>] user who make the post</li>\n<li>id_post: post where the commentary will be placed</li>\n<li>user_name: [<em>Optional</em>] If id_user it is not defined, pass a name from an user and will be creadted a new one.</li>\n<li>text: content of the commentary</li>\n</ul>\n","urlObject":{"protocol":"http","port":"7000","path":["commentary"],"host":["localhost"],"query":[{"disabled":true,"key":"id_user","value":""},{"key":"post_title","value":"ff"},{"key":"comm_text","value":"New content"},{"key":"user_name","value":"commentor"}],"variable":[]}},"response":[],"_postman_id":"9ef57456-2523-4714-ab30-762dd783f762"},{"name":"Edit Commentary","id":"cb5f9277-d9fd-416a-bc13-0dada28fe9b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:7000/commentary?id_comentary=ee90597a-5c1b-452d-b56f-d29002164616&text=renew the commentary","description":"<p>Edit a commentary.\n<br /></p>\n<p>Params:</p>\n<ul>\n<li>id_comentary: Identificator from the commentary (uuid data type).</li>\n<li>text: New content from the commentary.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"7000","path":["commentary"],"host":["localhost"],"query":[{"key":"id_comentary","value":"ee90597a-5c1b-452d-b56f-d29002164616"},{"key":"text","value":"renew the commentary"}],"variable":[]}},"response":[],"_postman_id":"cb5f9277-d9fd-416a-bc13-0dada28fe9b1"},{"name":"Delete Commentary","id":"7f5aa4f4-8eeb-442f-a757-04fc1950d5eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:7000/commentary?id_post=e87c33ac-e50f-422a-a9a8-3f99d363451c","description":"<p>Delete 1 or a set of comments from a post</p>\n<p>params:</p>\n<ul>\n<li>id_post: [<em>Optional</em>] if passed to the call, delete all the comments avalaible for that post.</li>\n<li>id_comentary: [<em>Optional</em>] if passed to the call, delete a commentary with this specific id.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"7000","path":["commentary"],"host":["localhost"],"query":[{"disabled":true,"key":"id_comentary","value":"e4efa47c-84fe-47b4-9b6d-5394fdfdb8c9"},{"key":"id_post","value":"e87c33ac-e50f-422a-a9a8-3f99d363451c"}],"variable":[]}},"response":[],"_postman_id":"7f5aa4f4-8eeb-442f-a757-04fc1950d5eb"}],"id":"0749dc1f-1a8c-4a9e-8b39-ae7235870c64","description":"<p>Set of endpoints controllers for the commentary data management.</p>\n","event":[{"listen":"prerequest","script":{"id":"5a1f2dd1-ae30-4e26-90ea-0d3681808bfa","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"dd6c3926-e64b-4a8b-a702-eca6ed38a515","type":"text/javascript","exec":[""]}}],"_postman_id":"0749dc1f-1a8c-4a9e-8b39-ae7235870c64"}],"event":[{"listen":"prerequest","script":{"id":"f0d925f9-5aa4-42e7-9ebe-354c3494ed24","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"cb2dfef5-21e5-4300-8435-17f0ad05e375","type":"text/javascript","exec":["sc_c0mments_and_p0st"]}}]}