{"info":{"_postman_id":"4074c02c-f59e-413e-9b5f-c4f6da05e30f","name":"mini-wp","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"6691212","collectionId":"4074c02c-f59e-413e-9b5f-c4f6da05e30f","publishedId":"S1a1bUqU","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-06-23T11:30:14.000Z"},"item":[{"name":"http://localhost:3000/api/articles/uploadImage","id":"4aee8c72-71d1-4d8d-b92a-ee3d5bb92a1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"access_token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbnB1dCI6eyJpZCI6IjVkMGUwZjE3NDZhOTlkMDkxODY5NTM2NSIsImVtYWlsIjoic2FidHVAaGFja3Rpdi5jb20ifSwiaWF0IjoxNTYxMjAyNDgyLCJleHAiOjE1NjEyODg4ODIsImlzcyI6IlN0ZWZLd2FuIn0.4qGWld0pThTRihOn_FOtDQmBefii6DR1c-_Bx17tVyE","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","value":null,"warning":"This file resides outside the working directory. Collaborators might not have the same file path."},{"key":"Content-Type","value":"multipart","type":"text","disabled":true}]},"url":"http://localhost:3000/api/articles/uploadImage","description":"<p>sends a locally uploaded image file to google cloud server to get a google cloud server url back</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","articles","uploadImage"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4aee8c72-71d1-4d8d-b92a-ee3d5bb92a1e"},{"name":"http://localhost:3000/api/users","id":"f7a4f4d8-7283-4288-98ee-13939b2eee8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/users","description":"<p>get list of registered users</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7a4f4d8-7283-4288-98ee-13939b2eee8a"},{"name":"http://localhost:3000/api/users/register","id":"ab3db79c-7f24-4dd6-89a5-4dac2b8aae2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\":\"sabtu\",\n\t\"email\":\"sabtu@hacktiv.com\",\n\t\"password\":\"123456\"\n}"},"url":"http://localhost:3000/api/users/register","description":"<p>register a user</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","users","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ab3db79c-7f24-4dd6-89a5-4dac2b8aae2c"},{"name":"http://localhost:3000/api/users/login","id":"5bc74d38-50a8-4e0e-baf3-1fbe698ebe98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"sabtu@hacktiv.com\",\n\t\"password\":\"123456\"\n}"},"url":"http://localhost:3000/api/users/login","description":"<p>user login</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","users","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5bc74d38-50a8-4e0e-baf3-1fbe698ebe98"},{"name":"http://localhost:3000/api/users/current","id":"05a27e5e-22fc-4008-82da-b29fe48de45b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"access_token","value":"","description":"<p>token of logged in user</p>\n","type":"text"}],"url":"http://localhost:3000/api/users/current","description":"<p>get current logged in user detail</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","users","current"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"05a27e5e-22fc-4008-82da-b29fe48de45b"},{"name":"http://localhost:3000/api/users","id":"5eb3fab2-fe63-4415-8fc9-dd1363a5f190","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"access_token","value":"","description":"<p>token of logged in user</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"new name\",\n\t\"password\": \"new password\"\n}"},"url":"http://localhost:3000/api/users","description":"<p>edit user's name and/or password</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5eb3fab2-fe63-4415-8fc9-dd1363a5f190"},{"name":"http://localhost:3000/api/users","id":"94be588b-d5a7-4620-8d03-dad750b930db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"access_token","value":"","description":"<p>token of logged in user</p>\n","type":"text"}],"url":"http://localhost:3000/api/users","description":"<p>delete current logged in user's account permanently</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"94be588b-d5a7-4620-8d03-dad750b930db"},{"name":"http://localhost:3000/api/articles","id":"5aa8511f-430a-4129-b7e5-ce7a1bcb9e55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"access_token","value":"","description":"<p>token of current logged in user</p>\n","type":"text"}],"url":"http://localhost:3000/api/articles","description":"<p>get all articles (blog post) posted</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","articles"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5aa8511f-430a-4129-b7e5-ce7a1bcb9e55"},{"name":"http://localhost:3000/api/articles/:id","id":"db313252-4ecf-4130-9a8f-81f768c3866e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"access_token","value":"","description":"<p>token of current logged in user</p>\n","type":"text"}],"url":"http://localhost:3000/api/articles/:id","description":"<p>get one article by id</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","articles",":id"],"host":["localhost"],"query":[],"variable":[{"id":"530f184c-ace0-4112-a3cb-2aaef926c897","type":"string","value":"","key":"id"}]}},"response":[],"_postman_id":"db313252-4ecf-4130-9a8f-81f768c3866e"},{"name":"http://localhost:3000/api/articles/read/:id","id":"5bd6a9cb-d11e-457b-aa1f-ac3d71223d43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"access_token","value":"","description":"<p>token of current logged in user</p>\n","type":"text"}],"url":"http://localhost:3000/api/articles/read/:id","description":"<p>reads the selected article (using voicerss text to voice api)</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","articles","read",":id"],"host":["localhost"],"query":[],"variable":[{"id":"7977277a-410c-4a40-99d7-d086e3e5f32b","type":"string","value":"","key":"id"}]}},"response":[],"_postman_id":"5bd6a9cb-d11e-457b-aa1f-ac3d71223d43"},{"name":"http://localhost:3000/api/articles","id":"5f2f9750-edf7-4296-9273-c5694518e7b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"access_token","value":"","description":"<p>token of currently logged in user</p>\n","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"title\": \"title of post in string\",\n\t\"content\": \"wysiwyg input in string, saved with html tags\",\n\t\"featured_image\": \"url from google cloud storage saved in string\"\n}"},"url":"http://localhost:3000/api/articles","description":"<p>creates a new article</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","articles"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5f2f9750-edf7-4296-9273-c5694518e7b8"},{"name":"http://localhost:3000/api/articles/:id","id":"46134d32-60c7-46fb-b11e-644bed043157","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"access_token","value":"","description":"<p>token of currently logged in user</p>\n","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"title\": \"title of post in string\",\n\t\"content\": \"wysiwyg input in string, saved with html tags\",\n\t\"featured_image\": \"url from google cloud storage saved in string\"\n}"},"url":"http://localhost:3000/api/articles/:id","description":"<p>updates selected article with new values</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","articles",":id"],"host":["localhost"],"query":[],"variable":[{"id":"5a05a7af-3b74-4f80-a2cf-02b9f579b1bd","type":"string","value":"","key":"id"}]}},"response":[],"_postman_id":"46134d32-60c7-46fb-b11e-644bed043157"},{"name":"http://localhost:3000/api/articles/:id","id":"6dd10d25-0265-4374-87d6-48b4e42dec17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"access_token","value":"","description":"<p>token of currently logged in user</p>\n","type":"text"}],"url":"http://localhost:3000/api/articles/:id","description":"<p>deletes selected article if it is written by the logged in user</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","articles",":id"],"host":["localhost"],"query":[],"variable":[{"id":"3d6ba703-f68f-4b74-a43b-b3dca451874b","type":"string","value":"","key":"id"}]}},"response":[],"_postman_id":"6dd10d25-0265-4374-87d6-48b4e42dec17"}]}