{"info":{"_postman_id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","name":"blog-app","description":"<html><head></head><body><p>This app contains microservices to store blogs, comments and render them. Measures various metrics and visualizes them. Aims of the repository is having testable, scalable, maintainable and fully Dockerized architecture.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24413595","collectionId":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","publishedId":"2s9YC5zDD7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-09-15T13:09:32.000Z"},"item":[{"name":"Get Blogs","id":"af4a18e3-9940-4057-bc44-d70fbc6b68e4","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"GET","header":[],"url":"localhost:2000/api/v1/blogs/?limit=1&offset=1&plainText=true&showUnverified=true","description":"<p><strong>Response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"visible\": true,\n        \"title\": \"Hello world from Postman\",\n        \"createdDate\": \"2023-09-15T12:34:42.214Z\",\n        \"modifiedDate\": \"2023-09-15T12:34:42.214Z\",\n        \"content\": \"Hello, today we're gonna talk about flowers and bugs. Flowers There is tons of type of flowers. Here is few of them:  Roses (i like red ones) Sunflowers Tulips Dandelions Bugs  i hate bugs. all software developers spends their life to fix them.\",\n        \"author\": \"Hamza Coşkun\",\n        \"id\": \"65044f62e9cc01ca1b55a5f3\"\n    }\n]\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Token"},{"key":"value","value":"123456"}]},"isInherited":true,"source":{"_postman_id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","name":"blog-app","type":"collection"}},"urlObject":{"port":"2000","path":["api","v1","blogs",""],"host":["localhost"],"query":[{"description":{"content":"<p>Maximum number of blogs the response will contain</p>\n","type":"text/plain"},"key":"limit","value":"1"},{"description":{"content":"<p>Response blogs after first n blogs.</p>\n","type":"text/plain"},"key":"offset","value":"1"},{"description":{"content":"<p>Remove markdown format of content.</p>\n","type":"text/plain"},"key":"plainText","value":"true"},{"description":{"content":"<p>Include blogs which's visible field is false too.</p>\n","type":"text/plain"},"key":"showUnverified","value":"true"}],"variable":[]}},"response":[{"id":"b7c5d9fb-dabe-4210-8c28-1b9e4286d6ba","name":"Get Blogs","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:2000/api/v1/blogs/?limit=1&offset=1&plainText=true&showUnverified=true","host":["localhost"],"port":"2000","path":["api","v1","blogs",""],"query":[{"key":"limit","value":"1","description":"Maximum number of blogs the response will contain"},{"key":"offset","value":"1","description":"Response blogs after first n blogs."},{"key":"plainText","value":"true","description":"Remove markdown format of content."},{"key":"showUnverified","value":"true","description":"Include blogs which's visible field is false too."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"450"},{"key":"ETag","value":"W/\"1c2-YTqzz3SDIa++b2AoKyu1PX8rRf0\""},{"key":"Date","value":"Fri, 15 Sep 2023 12:42:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"visible\": true,\n        \"title\": \"Hello world from Postman\",\n        \"createdDate\": \"2023-09-15T12:34:42.214Z\",\n        \"modifiedDate\": \"2023-09-15T12:34:42.214Z\",\n        \"content\": \"Hello, today we're gonna talk about flowers and bugs. Flowers There is tons of type of flowers. Here is few of them:  Roses (i like red ones) Sunflowers Tulips Dandelions Bugs  i hate bugs. all software developers spends their life to fix them.\",\n        \"author\": \"Hamza Coşkun\",\n        \"id\": \"65044f62e9cc01ca1b55a5f3\"\n    }\n]"}],"_postman_id":"af4a18e3-9940-4057-bc44-d70fbc6b68e4"},{"name":"Post Blog","id":"a9b488c0-b919-469c-bd73-f360ec4d33a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"token","value":"123456","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Hello world from Postman\",\n    \"author\": \"Hamza Coşkun\",\n    \"content\": \"Hello, today we're gonna talk about flowers and bugs.\\n## Flowers\\nThere is tons of type of flowers. Here is few of them:\\n* Roses (i like red ones)\\n*Sunflowers\\n*Tulips\\n*Dandelions\\n## Bugs\\n i hate bugs. all software developers spends their life to fix them.\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2000/api/v1/blogs/","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Token"},{"key":"value","value":"123456"}]},"isInherited":true,"source":{"_postman_id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","name":"blog-app","type":"collection"}},"urlObject":{"port":"2000","path":["api","v1","blogs",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8e2a96a2-821c-46b2-b79f-4ea9afeca63e","name":"Post blog about flowers","originalRequest":{"method":"POST","header":[{"key":"token","value":"123456","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Hello world from Postman\",\n    \"author\": \"Hamza Coşkun\",\n    \"content\": \"Hello, today we're gonna talk about flowers and bugs.\\n## Flowers\\nThere is tons of type of flowers. Here is few of them:\\n* Roses (i like red ones)\\n*Sunflowers\\n*Tulips\\n*Dandelions\\n## Bugs\\n i hate bugs. all software developers spends their life to fix them.\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2000/api/v1/blogs/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"466"},{"key":"ETag","value":"W/\"1d2-8gnAtv3maTiGOY2pqfrWRf3AdTE\""},{"key":"Date","value":"Fri, 15 Sep 2023 12:34:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"visible\": true,\n    \"title\": \"Hello world from Postman\",\n    \"createdDate\": \"2023-09-15T12:34:42.214Z\",\n    \"modifiedDate\": \"2023-09-15T12:34:42.214Z\",\n    \"content\": \"Hello, today we're gonna talk about flowers and bugs.\\n## Flowers\\nThere is tons of type of flowers. Here is few of them:\\n* Roses (i like red ones)\\n*Sunflowers\\n*Tulips\\n*Dandelions\\n## Bugs\\n i hate bugs. all software developers spends their life to fix them.\",\n    \"author\": \"Hamza Coşkun\",\n    \"id\": \"65044f62e9cc01ca1b55a5f3\"\n}"}],"_postman_id":"a9b488c0-b919-469c-bd73-f360ec4d33a6"},{"name":"Update Blog","id":"eed001cd-382d-403d-9d77-d86c1d19112e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\"visible\": false}","options":{"raw":{"language":"json"}}},"url":"localhost:2000/api/v1/blogs/:blog-id","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Token"},{"key":"value","value":"123456"}]},"isInherited":true,"source":{"_postman_id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","name":"blog-app","type":"collection"}},"urlObject":{"port":"2000","path":["api","v1","blogs",":blog-id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"","key":"blog-id"}]}},"response":[],"_postman_id":"eed001cd-382d-403d-9d77-d86c1d19112e"},{"name":"Post Comment","id":"9e1f6177-0222-43e7-af62-f2704e356c0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"writer\": \"Ahmet\",\n    \"content\": \"Thank you for the article!\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2001/api/v1/blogs/:blog-id/comments/","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Token"},{"key":"value","value":"123456"}]},"isInherited":true,"source":{"_postman_id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","name":"blog-app","type":"collection"}},"urlObject":{"port":"2001","path":["api","v1","blogs",":blog-id","comments",""],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"","key":"blog-id"}]}},"response":[{"id":"47b71725-a6ec-49b2-beab-a791e0aa7013","name":"Post Comment","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"writer\": \"Ahmet\",\n    \"content\": \"Thank you for the article!\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"localhost:2001/api/v1/blogs/:blog-id/comments/","host":["localhost"],"port":"2001","path":["api","v1","blogs",":blog-id","comments",""],"variable":[{"key":"blog-id","value":"65044f62e9cc01ca1b55a5f3"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"149"},{"key":"ETag","value":"W/\"95-waZedY80MqHTMCYv33XMs9mMK8A\""},{"key":"Date","value":"Fri, 15 Sep 2023 12:59:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"18a98ed0778\",\n    \"visible\": true,\n    \"writer\": \"Ahmet\",\n    \"content\": \"Thank you for the article!\",\n    \"createdDate\": \"2023-09-15T12:59:45.400Z\",\n    \"subComments\": []\n}"}],"_postman_id":"9e1f6177-0222-43e7-af62-f2704e356c0f"},{"name":"Post Sub Comment","id":"73d88477-41be-4d63-8d50-db92dafdaada","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"writer\": \"Hamza\",\n    \"content\": \"You're welcome.\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:2001/api/v1/blogs/:blog-id/comments/:parent-comment-id","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Token"},{"key":"value","value":"123456"}]},"isInherited":true,"source":{"_postman_id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","name":"blog-app","type":"collection"}},"urlObject":{"port":"2001","path":["api","v1","blogs",":blog-id","comments",":parent-comment-id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"","key":"blog-id"},{"type":"any","value":"","key":"parent-comment-id"}]}},"response":[{"id":"98079ff7-4167-4550-915c-7d6f75117675","name":"Post Sub Comment","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"writer\": \"Hamza\",\n    \"content\": \"You're welcome.\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"localhost:2001/api/v1/blogs/:blog-id/comments/:parent-comment-id","host":["localhost"],"port":"2001","path":["api","v1","blogs",":blog-id","comments",":parent-comment-id"],"variable":[{"key":"blog-id","value":"65044f62e9cc01ca1b55a5f3"},{"key":"parent-comment-id","value":"18a98ed0778"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"138"},{"key":"ETag","value":"W/\"8a-60ESxKU5M/Tvoc8HnFyDUTU0450\""},{"key":"Date","value":"Fri, 15 Sep 2023 13:00:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"18a98ed5341\",\n    \"visible\": true,\n    \"writer\": \"Hamza\",\n    \"content\": \"You're welcome.\",\n    \"createdDate\": \"2023-09-15T13:00:04.801Z\",\n    \"subComments\": []\n}"}],"_postman_id":"73d88477-41be-4d63-8d50-db92dafdaada"},{"name":"Get Comments","id":"5e89dccf-1e7e-4a25-bb69-25f750de5b2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"localhost:2001/api/v1/blogs/:blog-id/comments/","urlObject":{"port":"2001","path":["api","v1","blogs",":blog-id","comments",""],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"","key":"blog-id"}]}},"response":[{"id":"9e2f587b-b893-4738-aa4c-b28fa8c44e45","name":"Get Comments","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:2001/api/v1/blogs/:blog-id/comments/","host":["localhost"],"port":"2001","path":["api","v1","blogs",":blog-id","comments",""],"variable":[{"key":"blog-id","value":"65044f62e9cc01ca1b55a5f3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"289"},{"key":"ETag","value":"W/\"121-V8EglcVnSwnwonbYDnr515ptTvU\""},{"key":"Date","value":"Fri, 15 Sep 2023 13:08:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"18a98ed0778\",\n        \"visible\": true,\n        \"writer\": \"Ahmet\",\n        \"content\": \"Thank you for the article!\",\n        \"createdDate\": \"2023-09-15T12:59:45.400Z\",\n        \"subComments\": [\n            {\n                \"id\": \"18a98ed5341\",\n                \"visible\": true,\n                \"writer\": \"Hamza\",\n                \"content\": \"You're welcome.\",\n                \"createdDate\": \"2023-09-15T13:00:04.801Z\",\n                \"subComments\": []\n            }\n        ]\n    }\n]"}],"_postman_id":"5e89dccf-1e7e-4a25-bb69-25f750de5b2a"},{"name":"Get Nginx Metrics","id":"c7594d19-dad0-4c01-9181-f1df5d848fe7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"localhost:80/stub_status","urlObject":{"port":"80","path":["stub_status"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8eaa56a9-f15c-41b6-acd0-d1c907667a00","name":"Get Nginx Metrics","originalRequest":{"method":"GET","header":[],"url":"localhost:80/stub_status"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"nginx/1.25.2"},{"key":"Date","value":"Fri, 15 Sep 2023 12:27:19 GMT"},{"key":"Content-Type","value":"text/plain"},{"key":"Content-Length","value":"99"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Active connections: 2 \nserver accepts handled requests\n 3 3 112 \nReading: 0 Writing: 1 Waiting: 1 \n"}],"_postman_id":"c7594d19-dad0-4c01-9181-f1df5d848fe7"},{"name":"Generate Token","id":"4b828b0e-d198-4bee-841d-ae6d18d4aab7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": \"hamza\",\n    \"password\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/v1/generate-token","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Token"},{"key":"value","value":"123456"}]},"isInherited":true,"source":{"_postman_id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","name":"blog-app","type":"collection"}},"urlObject":{"port":"3000","path":["api","v1","generate-token"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b828b0e-d198-4bee-841d-ae6d18d4aab7"},{"name":"Validate Token","id":"bd7e3d41-b1a9-4ab0-a8db-3f316784ec30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": \"hamza\",\n    \"password\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/v1/generate-token","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Token"},{"key":"value","value":"123456"}]},"isInherited":true,"source":{"_postman_id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","id":"a1fca4f3-5e59-4cde-8998-35c47ad9ece8","name":"blog-app","type":"collection"}},"urlObject":{"port":"3000","path":["api","v1","generate-token"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd7e3d41-b1a9-4ab0-a8db-3f316784ec30"}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Token"},{"key":"value","value":"123456"}]}},"event":[{"listen":"prerequest","script":{"id":"054581ad-43f3-42a8-a3f5-fad79756fa57","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4db378e4-217f-4061-b393-ea88afda5650","type":"text/javascript","exec":[""]}}],"variable":[{"key":"ip","value":"localhost"},{"key":"api_token","value":"123456"}]}