{"info":{"_postman_id":"53e8c40e-dbc3-467c-9e14-654492899b0f","name":"RestAPI","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>What does your API do?<br>Basic CRUD using:</p>\n<ul>\n<li>NodeJS</li>\n<li>ExpressJS</li>\n<li>MongoDB</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"}],"owner":"15419160","collectionId":"53e8c40e-dbc3-467c-9e14-654492899b0f","publishedId":"UVyxRuAk","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-04-10T06:22:15.000Z"},"item":[{"name":"Get All Articles","id":"ac90ea0c-fa4b-424b-a0e1-d9e97d35199c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/articles/blog","urlObject":{"protocol":"http","port":"3000","path":["articles","blog"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"55bf4a4e-62c3-4625-acad-3534c4cf7394","name":"Get All Articles","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/articles/blog"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Headers","value":"X-Requested-With,content-type"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"4949"},{"key":"ETag","value":"W/\"1355-fqr/e2E1pXDOcqZOaz8qc2CPyoY\""},{"key":"Date","value":"Sun, 10 Apr 2022 06:12:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"author\": \"Proclub 2021\",\n        \"_id\": \"6252607ec18829258dccb68f\",\n        \"createdAt\": \"2022-04-10T04:43:42.942Z\",\n        \"title\": \"Contoh Aja\",\n        \"content\": \"anggap aja ini panjang\",\n        \"slug\": \"contoh-aja\",\n        \"sanitizedHtml\": \"<p>anggap aja ini panjang</p>\\n\",\n        \"__v\": 0\n    },\n    {\n        \"author\": \"Anonymous\",\n        \"_id\": \"625261afcb23502682d1973c\",\n        \"createdAt\": \"2022-04-10T04:48:47.375Z\",\n        \"title\": \"Title of a longer featured blog post\",\n        \"description\": \"Multiple lines of text that form the lede, informing new readers quickly and efficiently about what’s most interesting in this post’s contents.\\r\\n\\r\\n\",\n        \"content\": \"Yeah, she dances to her own beat. Oh, no. You could've been the greatest. 'Cause, baby, you're a firework. Maybe a reason why all the doors are closed. Open up your heart and just let it begin. So très chic, yeah, she's a classic.\\r\\n\\r\\nBikinis, zucchinis, Martinis, no weenies. I know there will be sacrifice but that's the price. This is how we do it. I'm not sticking around to watch you go down. You think you're so rock and roll, but you're really just a joke. I know one spark will shock the world, yeah yeah. Can't replace you with a million rings.\\r\\n\\r\\nTrying to connect the dots, don't know what to tell my boss. Before you met me I was alright but things were kinda heavy. You just gotta ignite the light and let it shine. Glitter all over the room pink flamingos in the pool.\\r\\n\\r\\nHeading\\r\\nSuiting up for my crowning battle. If you only knew what the future holds. Bring the beat back. Peach-pink lips, yeah, everybody stares.\\r\\n\\r\\nSub-heading\\r\\nYou give a hundred reasons why, and you say you're really gonna try. Straight stuntin' yeah we do it like that. Calling out my name. ‘Cause I, I’m capable of anything.\\r\\n\\r\\nExample code block\\r\\nBefore you met me I was alright but things were kinda heavy. You just gotta ignite the light and let it shine.\\r\\n\\r\\nSub-heading\\r\\nYou got the finest architecture. Passport stamps, she's cosmopolitan. Fine, fresh, fierce, we got it on lock. Never planned that one day I'd be losing you. She eats your heart out.\\r\\n\\r\\nGot a motel and built a fort out of sheets.\\r\\nYour kiss is cosmic, every move is magic.\\r\\nSuiting up for my crowning battle.\\r\\nTakes you miles high, so high, 'cause she’s got that one international smile.\\r\\n\\r\\nScared to rock the boat and make a mess.\\r\\nI could have rewrite your addiction.\\r\\nI know you get me so I let my walls come down.\\r\\nAfter a hurricane comes a rainbow.\",\n        \"slug\": \"title-of-a-longer-featured-blog-post\",\n        \"sanitizedHtml\": \"<p>Yeah, she dances to her own beat. Oh, no. You could've been the greatest. 'Cause, baby, you're a firework. Maybe a reason why all the doors are closed. Open up your heart and just let it begin. So très chic, yeah, she's a classic.</p>\\n<p>Bikinis, zucchinis, Martinis, no weenies. I know there will be sacrifice but that's the price. This is how we do it. I'm not sticking around to watch you go down. You think you're so rock and roll, but you're really just a joke. I know one spark will shock the world, yeah yeah. Can't replace you with a million rings.</p>\\n<p>Trying to connect the dots, don't know what to tell my boss. Before you met me I was alright but things were kinda heavy. You just gotta ignite the light and let it shine. Glitter all over the room pink flamingos in the pool.</p>\\n<p>Heading\\nSuiting up for my crowning battle. If you only knew what the future holds. Bring the beat back. Peach-pink lips, yeah, everybody stares.</p>\\n<p>Sub-heading\\nYou give a hundred reasons why, and you say you're really gonna try. Straight stuntin' yeah we do it like that. Calling out my name. ‘Cause I, I’m capable of anything.</p>\\n<p>Example code block\\nBefore you met me I was alright but things were kinda heavy. You just gotta ignite the light and let it shine.</p>\\n<p>Sub-heading\\nYou got the finest architecture. Passport stamps, she's cosmopolitan. Fine, fresh, fierce, we got it on lock. Never planned that one day I'd be losing you. She eats your heart out.</p>\\n<p>Got a motel and built a fort out of sheets.\\nYour kiss is cosmic, every move is magic.\\nSuiting up for my crowning battle.\\nTakes you miles high, so high, 'cause she’s got that one international smile.</p>\\n<p>Scared to rock the boat and make a mess.\\nI could have rewrite your addiction.\\nI know you get me so I let my walls come down.\\nAfter a hurricane comes a rainbow.</p>\\n\",\n        \"__v\": 0\n    },\n    {\n        \"author\": \"TBI\",\n        \"_id\": \"62526f485383543126584df9\",\n        \"createdAt\": \"2022-04-10T05:46:48.456Z\",\n        \"title\": \"KTBFFH\",\n        \"content\": \"KTBFFH\",\n        \"slug\": \"ktbffh\",\n        \"sanitizedHtml\": \"<p>KTBFFH</p>\\n\",\n        \"__v\": 0\n    },\n    {\n        \"author\": \"Hidayat Taufiqur\",\n        \"_id\": \"6252751a5383543126584e11\",\n        \"createdAt\": \"2022-04-10T06:11:38.870Z\",\n        \"title\": \"Preparation Task\",\n        \"description\": \"Tugas pre-probation divisi Software Engineer \",\n        \"content\": \"Ini adalah contoh dokumentasi dari sebuah REST API sederhana\",\n        \"slug\": \"preparation-task\",\n        \"sanitizedHtml\": \"<p>Ini adalah contoh dokumentasi dari sebuah REST API sederhana</p>\\n\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"ac90ea0c-fa4b-424b-a0e1-d9e97d35199c"},{"name":"Get an Article by Slug","id":"56fdb040-40ba-40be-9f9b-bcb3e60e8a2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/articles/blog/preparation-task","urlObject":{"protocol":"http","port":"3000","path":["articles","blog","preparation-task"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"51a39e0a-1071-434b-abd2-1ff99ae0aad1","name":"Get an Article by Slug","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/articles/blog/preparation-task"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Headers","value":"X-Requested-With,content-type"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"385"},{"key":"ETag","value":"W/\"181-vzCrHMUP+qVEiobC49ny5cALVi8\""},{"key":"Date","value":"Sun, 10 Apr 2022 06:12:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"author\": \"Hidayat Taufiqur\",\n    \"_id\": \"6252751a5383543126584e11\",\n    \"createdAt\": \"2022-04-10T06:11:38.870Z\",\n    \"title\": \"Preparation Task\",\n    \"description\": \"Tugas pre-probation divisi Software Engineer \",\n    \"content\": \"Ini adalah contoh dokumentasi dari sebuah REST API sederhana\",\n    \"slug\": \"preparation-task\",\n    \"sanitizedHtml\": \"<p>Ini adalah contoh dokumentasi dari sebuah REST API sederhana</p>\\n\",\n    \"__v\": 0\n}"}],"_postman_id":"56fdb040-40ba-40be-9f9b-bcb3e60e8a2b"},{"name":"Post an Article","id":"a41f510b-a49e-4c4c-b3be-7786b23f3fd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Hidayat Taufiqur\",\r\n    \"title\": \"Preparation Task\",\r\n    \"description\": \"Tugas pre-probation divisi Software Engineer \",\r\n    \"content\": \"Ini adalah contoh dokumentasi dari sebuah REST API sederhana\",\r\n    \"slug\": \"preparation-task\",\r\n    \"sanitizedHtml\": \"<p>Ini adalah contoh dokumentasi dari sebuah REST API sederhana</p>\\n\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/articles/blog","urlObject":{"protocol":"http","port":"3000","path":["articles","blog"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4e977ae0-900d-4bb0-aac6-0c22c90913bc","name":"Post an Article","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"author\": \"Hidayat Taufiqur\",\r\n    \"title\": \"Preparation Task\",\r\n    \"description\": \"Tugas pre-probation divisi Software Engineer \",\r\n    \"content\": \"Ini adalah contoh dokumentasi dari sebuah REST API sederhana\",\r\n    \"slug\": \"preparation-task\",\r\n    \"sanitizedHtml\": \"<p>Ini adalah contoh dokumentasi dari sebuah REST API sederhana</p>\\n\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/articles/blog"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Headers","value":"X-Requested-With,content-type"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"385"},{"key":"ETag","value":"W/\"181-vzCrHMUP+qVEiobC49ny5cALVi8\""},{"key":"Date","value":"Sun, 10 Apr 2022 06:11:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"author\": \"Hidayat Taufiqur\",\n    \"_id\": \"6252751a5383543126584e11\",\n    \"createdAt\": \"2022-04-10T06:11:38.870Z\",\n    \"title\": \"Preparation Task\",\n    \"description\": \"Tugas pre-probation divisi Software Engineer \",\n    \"content\": \"Ini adalah contoh dokumentasi dari sebuah REST API sederhana\",\n    \"slug\": \"preparation-task\",\n    \"sanitizedHtml\": \"<p>Ini adalah contoh dokumentasi dari sebuah REST API sederhana</p>\\n\",\n    \"__v\": 0\n}"}],"_postman_id":"a41f510b-a49e-4c4c-b3be-7786b23f3fd6"},{"name":"Edit an Article","id":"3a5d43a4-b4b7-44c5-b8b6-f9cfb5d1f311","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"titlenya diubah","type":"text"},{"key":"content","value":"sekalian content-nya","type":"text"}]},"url":"http://localhost:3000/articles/blog/6252751a5383543126584e11","urlObject":{"protocol":"http","port":"3000","path":["articles","blog","6252751a5383543126584e11"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ceab0c9c-07d4-4a82-b9cf-8d9de630d72b","name":"Edit an Article","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"titlenya diubah","type":"text"},{"key":"content","value":"sekalian content-nya","type":"text"}]},"url":"http://localhost:3000/articles/blog/6252751a5383543126584e11"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Headers","value":"X-Requested-With,content-type"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"213"},{"key":"ETag","value":"W/\"d5-LIyiQHZ7mWRGpv9FUTM8wahsJcM\""},{"key":"Date","value":"Sun, 10 Apr 2022 06:13:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6252751a5383543126584e11\",\n    \"createdAt\": \"2022-04-10T06:11:38.870Z\",\n    \"title\": \"titlenya diubah\",\n    \"content\": \"sekalian content-nya\",\n    \"slug\": \"titlenya-diubah\",\n    \"sanitizedHtml\": \"<p>sekalian content-nya</p>\\n\",\n    \"__v\": 0\n}"}],"_postman_id":"3a5d43a4-b4b7-44c5-b8b6-f9cfb5d1f311"},{"name":"Delete an Article by ID","id":"7315f6d4-4fb0-453c-b6b2-d55b163ca531","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3000/articles/blog/625271725383543126584e02","urlObject":{"protocol":"http","port":"3000","path":["articles","blog","625271725383543126584e02"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"befbb54b-0f65-4e94-be0a-0f4190b510cf","name":"Delete an Article by ID","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3000/articles/blog/625271725383543126584e02"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, PUT, PATCH, DELETE"},{"key":"Access-Control-Allow-Headers","value":"X-Requested-With,content-type"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"7"},{"key":"ETag","value":"W/\"7-Qqj2Udef0AXurAYS32RCuYOgEYQ\""},{"key":"Date","value":"Sun, 10 Apr 2022 06:11:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Success"}],"_postman_id":"7315f6d4-4fb0-453c-b6b2-d55b163ca531"}],"event":[{"listen":"prerequest","script":{"id":"396105a6-93f7-47a2-90e2-c8d368d39a4f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"23278fb4-85b1-4c77-82ce-d609eb4fa28b","type":"text/javascript","exec":[""]}}],"variable":[{"key":"url","value":"","type":"string"}]}