{"id":21413053,"url":"https://github.com/nascript/api-documentation-example","last_synced_at":"2026-01-03T00:47:29.668Z","repository":{"id":136869320,"uuid":"456576070","full_name":"nascript/api-documentation-example","owner":"nascript","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-01T11:16:31.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T05:14:53.108Z","etag":null,"topics":["api","api-documentation","api-rest"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nascript.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-07T16:01:10.000Z","updated_at":"2022-09-25T03:09:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c493e1b-56e0-42cf-9f3e-1020198db12a","html_url":"https://github.com/nascript/api-documentation-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nascript%2Fapi-documentation-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nascript%2Fapi-documentation-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nascript%2Fapi-documentation-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nascript%2Fapi-documentation-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nascript","download_url":"https://codeload.github.com/nascript/api-documentation-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910763,"owners_count":20367544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-documentation","api-rest"],"created_at":"2024-11-22T18:16:38.332Z","updated_at":"2026-01-03T00:47:29.627Z","avatar_url":"https://github.com/nascript.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# api-documentation-example\n\n# My Happiness API documentation\n\n### Base Local URL\n\n```url\nhttp://localhost:3001/\n```\n\n## Article Feature\n\n### Add Article (Role Admin)\n\n`POST /admin/v1/myhappiness/articles/add`\n\nAdd new article data\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Sample Request**\n\n```json\n{\n    Bearer 378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f\n}\n```\n\n**Request Body**\n\n- `name`, string | required | min(0) | max(100) =\u003e article name\n- `tags`, array | required =\u003e article tag\n- `categories`, array | required =\u003e article categories\n- `description`, string | required =\u003e article description\n- `content`, string | required =\u003e article content\n- `pathPhotoUrl`, array | required =\u003e article pathPhotoUrl\n- `publishAt`, number | required =\u003e article publishAt\n- `originUrl`, string | required =\u003e article originUrl\n- `originAuthor`, array | required =\u003e article originAuthor\n- `likeStatur`, array | required =\u003e article likeStatur\n- `read` array | required =\u003e article read\n\n**Sample Request**\n\n```json\n{\n  \"name\": \"jumat 7\",\n  \"tags\": [\"89dcab523-3ed2-471f-aacc-d8f79b64a9e3\"],\n  \"categories\": [\"371xab523-2ed2-473f-avcc-d2f79b64a9e3\"],\n  \"description\": \"from jumat desc 7\",\n  \"content\": \"from jumat postman content 7\",\n  \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n  \"publishAt\": 1643681160144,\n  \"originUrl\": \"https://www.halodoc.com/artikel/11-penyakit-yang-ditangani-dokter-spesialis-penyakit-dalam 2\",\n  \"originAuthor\": [\"tionpostman\"],\n  \"likeStatus\": [\"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"],\n  \"read\": [\"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"]\n}\n```\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"insertedArticle\": {\n            \"id\": \"5c372a2d-28ce-4358-886f-46fc3d8f06e0\",\n            \"articleName\": \"jumat 7\",\n            \"articleTags\": [\n                {\n                    \"id\": \"89dcab523-3ed2-471f-aacc-d8f79b64a9e3\",\n                    \"tagName\": \"heart\"\n                }\n            ],\n            \"articleCategories\": [\n                {\n                    \"id\": \"371xab523-2ed2-473f-avcc-d2f79b64a9e3\",\n                    \"categoryName\": \"Kardiologi\"\n                }\n            ],\n            \"articleDescription\": \"from jumat desc 7\",\n            \"articleContent\": \"from jumat postman content 7\",\n            \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n            \"articlePublishAt\": 1643681160144,\n            \"articleOriginUrl\": \"https://www.halodoc.com/artikel/11-penyakit-yang-ditangani-dokter-spesialis-penyakit-dalam 2\",\n            \"articleOriginAuthor\": [\n                \"tionpostman\"\n            ],\n            \"articleLikeStatus\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"articleRead\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"dataStatus\": 1,\n            \"audit\": {\n                \"createdAt\": \"2022-02-04T03:46:59.105Z\",\n                \"updatedAt\": \"2022-02-04T03:46:59.105Z\",\n                \"createdBy\": \"system\",\n                \"updatedBy\": \"system\"\n            }\n        }\n    }\n}\n```\n\n**Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 400 Bad Request\nContent-Type: application/json\n{\n    \"code\": 400,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"ValidationError\",\n        \"message\": \"\\\"content\\\" is required\"\n    }\n}\n```\n\n\u003c/details\u003e\n\n### List Article (Role Admin)\n\n`GET /admin/v1/myhappiness/articles/my/list`\n\nList Article\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Sample Request**\n\n```json\n{\n    Bearer 378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f\n}\n```\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"insertedArticle\": {\n            \"id\": \"5c372a2d-28ce-4358-886f-46fc3d8f06e0\",\n            \"articleName\": \"jumat 7\",\n            \"articleTags\": [\n                {\n                    \"id\": \"89dcab523-3ed2-471f-aacc-d8f79b64a9e3\",\n                    \"tagName\": \"heart\"\n                }\n            ],\n            \"articleCategories\": [\n                {\n                    \"id\": \"371xab523-2ed2-473f-avcc-d2f79b64a9e3\",\n                    \"categoryName\": \"Kardiologi\"\n                }\n            ],\n            \"articleDescription\": \"from jumat desc 7\",\n            \"articleContent\": \"from jumat postman content 7\",\n            \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n            \"articlePublishAt\": 1643681160144,\n            \"articleOriginUrl\": \"https://www.halodoc.com/artikel/11-penyakit-yang-ditangani-dokter-spesialis-penyakit-dalam 2\",\n            \"articleOriginAuthor\": [\n                \"tionpostman\"\n            ],\n            \"articleLikeStatus\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"articleRead\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"dataStatus\": 1,\n            \"audit\": {\n                \"createdAt\": \"2022-02-04T03:46:59.105Z\",\n                \"updatedAt\": \"2022-02-04T03:46:59.105Z\",\n                \"createdBy\": \"system\",\n                \"updatedBy\": \"system\"\n            }\n        }\n    },\n\n    more....\n}\n```\n\n\u003c!-- **Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 400 Bad Request\nContent-Type: application/json\n{\n    \"code\": 400,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"ValidationError\",\n        \"message\": \"\\\"content\\\" is required\"\n    }\n}\n``` --\u003e\n\n\u003c/details\u003e\n\n### List Article (Role Customer)\n\n`GET /admin/v1/myhappiness/articles/list`\n\nList Article\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Sample Request**\n\n```json\n{\n    Bearer 378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f\n}\n```\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"insertedArticle\": {\n            \"id\": \"5c372a2d-28ce-4358-886f-46fc3d8f06e0\",\n            \"articleName\": \"jumat 7\",\n            \"articleTags\": [\n                {\n                    \"id\": \"89dcab523-3ed2-471f-aacc-d8f79b64a9e3\",\n                    \"tagName\": \"heart\"\n                }\n            ],\n            \"articleCategories\": [\n                {\n                    \"id\": \"371xab523-2ed2-473f-avcc-d2f79b64a9e3\",\n                    \"categoryName\": \"Kardiologi\"\n                }\n            ],\n            \"articleDescription\": \"from jumat desc 7\",\n            \"articleContent\": \"from jumat postman content 7\",\n            \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n            \"articlePublishAt\": 1643681160144,\n            \"articleOriginUrl\": \"https://www.halodoc.com/artikel/11-penyakit-yang-ditangani-dokter-spesialis-penyakit-dalam 2\",\n            \"articleOriginAuthor\": [\n                \"tionpostman\"\n            ],\n            \"articleLikeStatus\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"articleRead\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"dataStatus\": 1,\n            \"audit\": {\n                \"createdAt\": \"2022-02-04T03:46:59.105Z\",\n                \"updatedAt\": \"2022-02-04T03:46:59.105Z\",\n                \"createdBy\": \"system\",\n                \"updatedBy\": \"system\"\n            }\n        }\n    },\n\n    more....\n}\n```\n\n\u003c!-- **Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 400 Bad Request\nContent-Type: application/json\n{\n    \"code\": 400,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"ValidationError\",\n        \"message\": \"\\\"content\\\" is required\"\n    }\n}\n``` --\u003e\n\n\u003c/details\u003e\n\n### Article Detail\n\n`GET /admin/v1/myhappiness/articles/:id`\n\nArticle Detail\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Sample Request**\n\n```json\n{\n    Bearer 378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f\n}\n```\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"insertedArticle\": {\n            \"id\": \"5c372a2d-28ce-4358-886f-46fc3d8f06e0\",\n            \"articleName\": \"jumat 7\",\n            \"articleTags\": [\n                {\n                    \"id\": \"89dcab523-3ed2-471f-aacc-d8f79b64a9e3\",\n                    \"tagName\": \"heart\"\n                }\n            ],\n            \"articleCategories\": [\n                {\n                    \"id\": \"371xab523-2ed2-473f-avcc-d2f79b64a9e3\",\n                    \"categoryName\": \"Kardiologi\"\n                }\n            ],\n            \"articleDescription\": \"from jumat desc 7\",\n            \"articleContent\": \"from jumat postman content 7\",\n            \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n            \"articlePublishAt\": 1643681160144,\n            \"articleOriginUrl\": \"https://www.halodoc.com/artikel/11-penyakit-yang-ditangani-dokter-spesialis-penyakit-dalam 2\",\n            \"articleOriginAuthor\": [\n                \"tionpostman\"\n            ],\n            \"articleLikeStatus\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"articleRead\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"dataStatus\": 1,\n            \"audit\": {\n                \"createdAt\": \"2022-02-04T03:46:59.105Z\",\n                \"updatedAt\": \"2022-02-04T03:46:59.105Z\",\n                \"createdBy\": \"system\",\n                \"updatedBy\": \"system\"\n            }\n        }\n    },\n}\n```\n\n**Error Response**\n\n- Not Found\n\n```json\nHTTP/1.1 404 Not Found\nContent-Type: application/json\n{\n    \"code\": 404,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"NotFoundError\",\n        \"message\": \"article not found\"\n    }\n}\n```\n\n\u003c/details\u003e\n\n### Update Article (Role Admin)\n\n`POST /v1/myhappiness/articles/update/:id`\n\nUpdate Article\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Body Request**\n\n- `name`, string | required | min(0) | max(100) =\u003e article name\n- `tags`, array | required =\u003e article tag\n- `categories`, array | required =\u003e article categories\n- `description`, string | required =\u003e article description\n- `content`, string | required =\u003e article content\n- `pathPhotoUrl`, array | required =\u003e article pathPhotoUrl\n- `publishAt`, number | required =\u003e article publishAt\n- `originUrl`, string | required =\u003e article originUrl\n- `originAuthor`, array | required =\u003e article originAuthor\n- `likeStatur`, array | required =\u003e article likeStatur\n- `read` array | required =\u003e article read\n\n**Sample Request**\n\n```json\n{\n  \"name\": \"jumat 7\",\n  \"tags\": [\"89dcab523-3ed2-471f-aacc-d8f79b64a9e3\"],\n  \"categories\": [\"371xab523-2ed2-473f-avcc-d2f79b64a9e3\"],\n  \"description\": \"from jumat desc 7\",\n  \"content\": \"from jumat postman content 7\",\n  \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n  \"publishAt\": 1643681160144,\n  \"originUrl\": \"https://www.halodoc.com/artikel/11-penyakit-yang-ditangani-dokter-spesialis-penyakit-dalam 2\",\n  \"originAuthor\": [\"tionpostman\"],\n  \"likeStatus\": [\"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"],\n  \"read\": [\"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"]\n}\n```\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"insertedArticle\": {\n            \"id\": \"5c372a2d-28ce-4358-886f-46fc3d8f06e0\",\n            \"articleName\": \"jumat 7\",\n            \"articleTags\": [\n                {\n                    \"id\": \"89dcab523-3ed2-471f-aacc-d8f79b64a9e3\",\n                    \"tagName\": \"heart\"\n                }\n            ],\n            \"articleCategories\": [\n                {\n                    \"id\": \"371xab523-2ed2-473f-avcc-d2f79b64a9e3\",\n                    \"categoryName\": \"Kardiologi\"\n                }\n            ],\n            \"articleDescription\": \"from jumat desc 7\",\n            \"articleContent\": \"from jumat postman content 7\",\n            \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n            \"articlePublishAt\": 1643681160144,\n            \"articleOriginUrl\": \"https://www.halodoc.com/artikel/11-penyakit-yang-ditangani-dokter-spesialis-penyakit-dalam 2\",\n            \"articleOriginAuthor\": [\n                \"tionpostman\"\n            ],\n            \"articleLikeStatus\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"articleRead\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"dataStatus\": 1,\n            \"audit\": {\n                \"createdAt\": \"2022-02-04T03:46:59.105Z\",\n                \"updatedAt\": \"2022-02-04T03:46:59.105Z\",\n                \"createdBy\": \"system\",\n                \"updatedBy\": \"system\"\n            }\n        }\n    },\n\n}\n```\n\n**Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 400 Bad Request\nContent-Type: application/json\n{\n    \"code\": 400,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"ValidationError\",\n        \"message\": \"\\\"content\\\" is required\"\n    }\n}\n```\n\n- Not Found\n\n```json\nHTTP/1.1 404 Bad Request\nContent-Type: application/json\n{\n    \"code\": 404,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"NotFoundError\",\n        \"message\": \"article not found\"\n    }\n}\n```\n\n\u003c/details\u003e\n\n### Update Article Data Active (Role Admin)\n\n`GET /admin/v1/myhappiness/articles/activate/:id`\n\nUpdate Article `dataStatus 1 = activate`\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"insertedArticle\": {\n            \"id\": \"5c372a2d-28ce-4358-886f-46fc3d8f06e0\",\n            \"articleName\": \"jumat 7\",\n            \"articleTags\": [\n                {\n                    \"id\": \"89dcab523-3ed2-471f-aacc-d8f79b64a9e3\",\n                    \"tagName\": \"heart\"\n                }\n            ],\n            \"articleCategories\": [\n                {\n                    \"id\": \"371xab523-2ed2-473f-avcc-d2f79b64a9e3\",\n                    \"categoryName\": \"Kardiologi\"\n                }\n            ],\n            \"articleDescription\": \"from jumat desc 7\",\n            \"articleContent\": \"from jumat postman content 7\",\n            \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n            \"articlePublishAt\": 1643681160144,\n            \"articleOriginUrl\": \"https://www.halodoc.com/artikel/11-penyakit-yang-ditangani-dokter-spesialis-penyakit-dalam 2\",\n            \"articleOriginAuthor\": [\n                \"tionpostman\"\n            ],\n            \"articleLikeStatus\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"articleRead\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"dataStatus\": 1,\n            \"audit\": {\n                \"createdAt\": \"2022-02-04T03:46:59.105Z\",\n                \"updatedAt\": \"2022-02-04T03:46:59.105Z\",\n                \"createdBy\": \"system\",\n                \"updatedBy\": \"system\"\n            }\n        }\n    },\n\n}\n```\n\n**Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 400 Bad Request\nContent-Type: application/json\n{\n    \"code\": 404,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"NotFoundError\",\n        \"message\": \"Article not found\"\n    }\n}\n```\n\n- Not Found\n\n```json\nHTTP/1.1 404 Bad Request\nContent-Type: application/json\n{\n    \"code\": 404,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"NotFoundError\",\n        \"message\": \"article not found\"\n    }\n}\n```\n\n\u003c/details\u003e\n\n### Update Article Data Active (Role Admin)\n\n`GET /admin/v1/myhappiness/articles/deactivate/:id`\n\nUpdate Article `dataStatus 2 = Inactive`\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"insertedArticle\": {\n            \"id\": \"5c372a2d-28ce-4358-886f-46fc3d8f06e0\",\n            \"articleName\": \"jumat 7\",\n            \"articleTags\": [\n                {\n                    \"id\": \"89dcab523-3ed2-471f-aacc-d8f79b64a9e3\",\n                    \"tagName\": \"heart\"\n                }\n            ],\n            \"articleCategories\": [\n                {\n                    \"id\": \"371xab523-2ed2-473f-avcc-d2f79b64a9e3\",\n                    \"categoryName\": \"Kardiologi\"\n                }\n            ],\n            \"articleDescription\": \"from jumat desc 7\",\n            \"articleContent\": \"from jumat postman content 7\",\n            \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n            \"articlePublishAt\": 1643681160144,\n            \"articleOriginUrl\": \"https://www.halodoc.com/artikel/11-penyakit-yang-ditangani-dokter-spesialis-penyakit-dalam 2\",\n            \"articleOriginAuthor\": [\n                \"tionpostman\"\n            ],\n            \"articleLikeStatus\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"articleRead\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"dataStatus\": 2,\n            \"audit\": {\n                \"createdAt\": \"2022-02-04T03:46:59.105Z\",\n                \"updatedAt\": \"2022-02-04T03:46:59.105Z\",\n                \"createdBy\": \"system\",\n                \"updatedBy\": \"system\"\n            }\n        }\n    },\n\n}\n```\n\n**Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 400 Bad Request\nContent-Type: application/json\n{\n    \"code\": 404,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"NotFoundError\",\n        \"message\": \"Article not found\"\n    }\n}\n```\n\n- Not Found\n\n```json\nHTTP/1.1 404 Bad Request\nContent-Type: application/json\n{\n    \"code\": 404,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"NotFoundError\",\n        \"message\": \"article not found\"\n    }\n}\n```\n\n\u003c/details\u003e\n\n### Update Article Data Active (Role Admin)\n\n`GET /admin/v1/myhappiness/articles/deactivate/:id`\n\nUpdate Article `dataStatus 3 = Remove`\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"insertedArticle\": {\n            \"id\": \"5c372a2d-28ce-4358-886f-46fc3d8f06e0\",\n            \"articleName\": \"jumat 7\",\n            \"articleTags\": [\n                {\n                    \"id\": \"89dcab523-3ed2-471f-aacc-d8f79b64a9e3\",\n                    \"tagName\": \"heart\"\n                }\n            ],\n            \"articleCategories\": [\n                {\n                    \"id\": \"371xab523-2ed2-473f-avcc-d2f79b64a9e3\",\n                    \"categoryName\": \"Kardiologi\"\n                }\n            ],\n            \"articleDescription\": \"from jumat desc 7\",\n            \"articleContent\": \"from jumat postman content 7\",\n            \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n            \"articlePublishAt\": 1643681160144,\n            \"articleOriginUrl\": \"https://www.halodoc.com/artikel/11-penyakit-yang-ditangani-dokter-spesialis-penyakit-dalam 2\",\n            \"articleOriginAuthor\": [\n                \"tionpostman\"\n            ],\n            \"articleLikeStatus\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"articleRead\": [\n                \"62e0eeb9-d07e-461e-b39a-5b7ff68565b4\"\n            ],\n            \"dataStatus\": 3,\n            \"audit\": {\n                \"createdAt\": \"2022-02-04T03:46:59.105Z\",\n                \"updatedAt\": \"2022-02-04T03:46:59.105Z\",\n                \"createdBy\": \"system\",\n                \"updatedBy\": \"system\"\n            }\n        }\n    },\n\n}\n```\n\n**Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 400 Bad Request\nContent-Type: application/json\n{\n    \"code\": 404,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"NotFoundError\",\n        \"message\": \"Article not found\"\n    }\n}\n```\n\n- Not Found\n\n```json\nHTTP/1.1 404 Bad Request\nContent-Type: application/json\n{\n    \"code\": 404,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"NotFoundError\",\n        \"message\": \"article not found\"\n    }\n}\n```\n\n\u003c/details\u003e\n\n### Image Article\n\n`GET /admin/v1/myhappiness/articles/photo/presigned/*extension`\n\nget URL aws\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"signedUrl\": \"https://nadi-cdn.s3.ap-southeast-1.amazonaws.com/articles/dc6ade98801841fb8897bd539059e809.png?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Content-Sha256=UNSIGNED-PAYLOAD\u0026X-Amz-Credential=AKIA6HIV5YVRJQYYRTGN%2F20220204%2Fap-southeast-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20220204T041144Z\u0026X-Amz-Expires=3600\u0026X-Amz-Signature=c05449895cb709c47c6984a1f09fbb465da9364bea1a1c7455b0c15f59838149\u0026X-Amz-SignedHeaders=host\u0026x-amz-acl=public-read\u0026x-id=PutObject\",\n        \"fileUrl\": \"https://nadi-cdn.s3.ap-southeast-1.amazonaws.com/articles/dc6ade98801841fb8897bd539059e809.png\"\n    }\n}\n```\n\n**Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 400 Bad Request\nContent-Type: application/json\n{\n    \"code\": 400,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"ValidationError\",\n        \"message\": \"\\\"ext\\\" must be one of [jpg, jpeg, png]\"\n    }\n}\n```\n\n\u003c/details\u003e\n\n### Delete Image Article\n\n`POST /admin/v1/myhappiness/articles/photo/delete`\n\nDelete photo assign in aws\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"message\": \"Image deleted successfully\"\n    }\n}\n```\n\n**Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 400 Bad Request\nContent-Type: application/json\n{\n    \"code\": 400,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"ValidationError\",\n        \"message\": \"\\\"key\\\" is required\"\n    }\n}\n```\n\n\u003c/details\u003e\n\n## Article Categories Feature\n\n### Add Article category (Role Admin)\n\n`POST /v1/admin/myhappiness/article-categories/add`\n\nAdd new article category data\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Sample Request**\n\n```json\n{\n    Bearer 378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f\n}\n```\n\n**Request Body**\n\n- `name`, string | required =\u003e article name\n- `photoProfile`, string | required =\u003e Thumbnail of category\n- `parent`, string | null =\u003e parentId\n- `articles`, array =\u003e list articles of category\n- **Sample Request**\n\n```json\n{\n  \"name\": \"Hair\",\n  \"photoProfile\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n  \"parent\": \"\"\n}\n```\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"insertedArticleCategory\": {\n            \"id\": \"641f5b25-da5e-4be6-bf81-bd3607db5b39\",\n            \"parentId\": null,\n            \"categoryName\": \"Hair\",\n            \"childrens\": [],\n            \"articles\": [],\n            \"photoProfile\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n            \"dataStatus\": 1,\n            \"audit\": {\n                \"createdAt\": 1644235753490,\n                \"createdBy\": \"faker-admin\",\n                \"updatedAt\": 1644235753490,\n                \"updatedBy\": \"faker-admin\"\n            },\n            \"articleTotal\": 0\n        }\n    }\n}\n```\n\n**Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 400 Bad Request\nContent-Type: application/json\n{\n    \"code\": 400,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"ValidationError\",\n        \"message\": \"\\\"name\\\" is required\"\n    }\n}\n```\n\n\u003c/details\u003e\n\n### List Article category (Role Admin)\n\n`GET v1/admin/myhappiness/article-categories/list`\n\nList All article category data\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Sample Request**\n\n```json\n{\n    Bearer 378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f\n}\n```\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"articleCategories\": [\n            {\n                \"id\": \"d03b019e-8b9f-4b6e-b654-edd499616eb9\",\n                \"parentId\": null,\n                \"categoryName\": \"Nose\",\n                \"photoProfile\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n                \"childrens\": [],\n                \"articles\": [\n                    {\n                        \"id\": \"0049760d-235b-487d-b7ad-47fff46d9da1\",\n                        \"articleName\": \"rabu\",\n                        \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\"\n                    }\n                ],\n                \"dataStatus\": 1,\n                \"audit\": {\n                    \"createdAt\": 1644234421141,\n                    \"createdBy\": \"faker-admin\",\n                    \"updatedAt\": 1644234421141,\n                    \"updatedBy\": \"faker-admin\"\n                },\n                \"articleTotal\": 1\n            },\n            {\n                \"id\": \"205a31b2-371e-48a8-b0a4-9e8e2142ff43\",\n                \"parentId\": null,\n                \"categoryName\": \"Nose\",\n                \"photoProfile\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n                \"childrens\": [],\n                \"articles\": [],\n                \"dataStatus\": 1,\n                \"audit\": {\n                    \"createdAt\": 1644234338152,\n                    \"createdBy\": \"faker-admin\",\n                    \"updatedAt\": 1644234338152,\n                    \"updatedBy\": \"faker-admin\"\n                },\n                \"articleTotal\": 0\n            },\n            {\n                \"id\": \"371xab523-2ed2-473f-avcc-d2f79b64a9e3\",\n                \"parentId\": null,\n                \"categoryName\": \"Kardiologi update\",\n                \"photoProfile\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n                \"childrens\": [],\n                \"articles\": [\n                    {\n                        \"id\": \"0049760d-235b-487d-b7ad-47fff46d9da1\",\n                        \"articleName\": \"rabu\",\n                        \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\"\n                    },\n                    {\n                        \"id\": \"b43b153a-721b-40f2-ab70-5c7fb828d917\",\n                        \"articleName\": \"senunu\",\n                        \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\"\n                    }\n                ],\n                \"dataStatus\": 2,\n                \"audit\": {\n                    \"createdAt\": 1643678491702,\n                    \"updatedAt\": 1644238343073,\n                    \"updatedBy\": \"faker-admin\"\n                },\n                \"articleTotal\": 2\n            },\n            {\n                \"id\": \"3723fb523-2dd2-477f-aagc-d8f74b64a9e3\",\n                \"parentId\": null,\n                \"categoryName\": \"Reumatologi\",\n                \"photoProfile\": \"https://cdn.pixabay.com/photo/2015/05/13/13/53/skull-765477_1280.jpg\",\n                \"childrens\": [],\n                \"articles\": [],\n                \"dataStatus\": 1,\n                \"audit\": {\n                    \"createdAt\": 1643678491702,\n                    \"updatedAt\": 1643678491702\n                },\n                \"articleTotal\": 0\n            }\n        ],\n        \"total\": 4,\n        \"count\": 4,\n        \"skip\": 0,\n        \"limit\": 10\n    }\n}\n```\n\n\u003c/details\u003e\n\n### List Article category (Role Customer)\n\n`GET v1/admin/myhappiness/article-categories/list`\n\nList All article category data\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Sample Request**\n\n```json\n{\n    Bearer 378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f\n}\n```\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"articleCategories\": [\n            {\n                \"id\": \"d03b019e-8b9f-4b6e-b654-edd499616eb9\",\n                \"parentId\": null,\n                \"categoryName\": \"Nose\",\n                \"photoProfile\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n                \"childrens\": [],\n                \"dataStatus\": 1\n            },\n            {\n                \"id\": \"205a31b2-371e-48a8-b0a4-9e8e2142ff43\",\n                \"parentId\": null,\n                \"categoryName\": \"Nose\",\n                \"photoProfile\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n                \"childrens\": [],\n                \"dataStatus\": 1\n            },\n            {\n                \"id\": \"3723fb523-2dd2-477f-aagc-d8f74b64a9e3\",\n                \"parentId\": null,\n                \"categoryName\": \"Reumatologi\",\n                \"photoProfile\": \"https://cdn.pixabay.com/photo/2015/05/13/13/53/skull-765477_1280.jpg\",\n                \"childrens\": [],\n                \"dataStatus\": 1\n            }\n        ],\n        \"total\": 3,\n        \"count\": 3,\n        \"skip\": 0,\n        \"limit\": 10\n    }\n}\n```\n\n\u003c/details\u003e\n\n### Detail Article category (Role Admin)\n\n`GET v1/admin/myhappiness/article-categories/detail/:categoryId`\n\nDetail article category data\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Sample Request**\n\n```json\n{\n    Bearer 378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f\n}\n```\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"articleCategory\": {\n            \"id\": \"371xab523-2ed2-473f-avcc-d2f79b64a9e3\",\n            \"parentId\": null,\n            \"categoryName\": \"Kardiologi update\",\n            \"childrens\": [],\n            \"articles\": [\n                {\n                    \"id\": \"0049760d-235b-487d-b7ad-47fff46d9da1\",\n                    \"articleName\": \"rabu\",\n                    \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\"\n                },\n                {\n                    \"id\": \"b43b153a-721b-40f2-ab70-5c7fb828d917\",\n                    \"articleName\": \"senunu\",\n                    \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\"\n                }\n            ],\n            \"photoProfile\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n            \"dataStatus\": 2,\n            \"audit\": {\n                \"createdAt\": 1643678491702,\n                \"updatedAt\": 1644238343073,\n                \"updatedBy\": \"faker-admin\"\n            },\n            \"articleTotal\": 2\n        }\n    }\n}\n```\n\n**Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 404 Not Found\nContent-Type: application/json\n\n{\n    \"code\": 404,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"NotFoundError\",\n        \"message\": \"Article Category not found\"\n    }\n}\n\n```\n\n\u003c/details\u003e\n\n### Update Article category (Role Admin)\n\n`POST v1/admin/myhappiness/article-categories/update/categoryId`\n\nUpdate article category data\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Request Body**\n\n- `name`, string | required =\u003e article name\n- `photoProfile`, string | required =\u003e Thumbnail of category\n- `parent`, string | null =\u003e parentId\n- `articles`, array =\u003e list articles of category\n\n**Sample Request**\n\n```json\n{\n  \"name\": \"Hair\",\n  \"photoProfile\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n  \"parent\": \"\"\n}\n```\n\n**Sample Request**\n\n```json\n{\n    Bearer 378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f\n}\n```\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"updatedArticleCategory\": {\n            \"id\": \"371xab523-2ed2-473f-avcc-d2f79b64a9e3\",\n            \"parentId\": null,\n            \"categoryName\": \"Kardiologi update\",\n            \"childrens\": [],\n            \"articles\": [\n                {\n                    \"id\": \"0049760d-235b-487d-b7ad-47fff46d9da1\",\n                    \"articleName\": \"rabu\",\n                    \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\"\n                },\n                {\n                    \"id\": \"b43b153a-721b-40f2-ab70-5c7fb828d917\",\n                    \"articleName\": \"senunu\",\n                    \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\"\n                }\n            ],\n            \"photoProfile\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n            \"dataStatus\": 2,\n            \"audit\": {\n                \"createdAt\": 1643678491702,\n                \"updatedAt\": 1644238343073,\n                \"updatedBy\": \"faker-admin\"\n            },\n            \"articleTotal\": 2\n        }\n    }\n}\n\n```\n\n**Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 404 Not Found\nContent-Type: application/json\n\n{\n    \"code\": 404,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"NotFoundError\",\n        \"message\": \"Article Category not found\"\n    }\n}\n\n```\n\n\u003c/details\u003e\n\n### Update `dataStatus activate` Article category (Role Admin)\n\n`POST v1/admin/myhappiness/article-categories/activate/categoryId`\n\nUpdate`dataStatus activate` article category data\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Sample Request**\n\n```json\n{\n    Bearer 378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f\n}\n```\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"activatedArticleCategory\": {\n            \"id\": \"371xab523-2ed2-473f-avcc-d2f79b64a9e3\",\n            \"parentId\": null,\n            \"categoryName\": \"Kardiologi update\",\n            \"childrens\": [],\n            \"articles\": [\n                {\n                    \"id\": \"0049760d-235b-487d-b7ad-47fff46d9da1\",\n                    \"articleName\": \"rabu\",\n                    \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\"\n                },\n                {\n                    \"id\": \"b43b153a-721b-40f2-ab70-5c7fb828d917\",\n                    \"articleName\": \"senunu\",\n                    \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\"\n                }\n            ],\n            \"photoProfile\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n            \"dataStatus\": 1,\n            \"audit\": {\n                \"createdAt\": 1643678491702,\n                \"updatedAt\": 1644248680179,\n                \"updatedBy\": \"faker-admin\",\n                \"activatedAt\": 1644248680179,\n                \"activatedBy\": \"faker-admin\"\n            },\n            \"articleTotal\": 2\n        }\n    }\n}\n```\n\n**Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 404 Not Found\nContent-Type: application/json\n\n{\n    \"code\": 404,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"NotFoundError\",\n        \"message\": \"Article Category not found\"\n    }\n}\n\n```\n\n\u003c/details\u003e\n\n### Update `dataStatus deactivate` Article category (Role Admin)\n\n`POST v1/admin/myhappiness/article-categories/deactivate/categoryId`\n\nUpdate`dataStatus deactivate` article category data\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Sample Request**\n\n```json\n{\n    Bearer 378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f\n}\n```\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"activatedArticleCategory\": {\n            \"id\": \"371xab523-2ed2-473f-avcc-d2f79b64a9e3\",\n            \"parentId\": null,\n            \"categoryName\": \"Kardiologi update\",\n            \"childrens\": [],\n            \"articles\": [\n                {\n                    \"id\": \"0049760d-235b-487d-b7ad-47fff46d9da1\",\n                    \"articleName\": \"rabu\",\n                    \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\"\n                },\n                {\n                    \"id\": \"b43b153a-721b-40f2-ab70-5c7fb828d917\",\n                    \"articleName\": \"senunu\",\n                    \"pathPhotoUrl\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\"\n                }\n            ],\n            \"photoProfile\": \"https://cdn.pixabay.com/photo/2016/07/24/21/01/thermometer-1539191_128...\",\n            \"dataStatus\": 2,\n            \"audit\": {\n                \"createdAt\": 1643678491702,\n                \"updatedAt\": 1644248680179,\n                \"updatedBy\": \"faker-admin\",\n                \"activatedAt\": 1644248680179,\n                \"activatedBy\": \"faker-admin\"\n            },\n            \"articleTotal\": 2\n        }\n    }\n}\n```\n\n**Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 404 Not Found\nContent-Type: application/json\n\n{\n    \"code\": 404,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"NotFoundError\",\n        \"message\": \"Article Category not found\"\n    }\n}\n\n```\n\n\u003c/details\u003e\n\n### Update `dataStatus remove` Article category (Role Admin)\n\n`POST v1/admin/myhappiness/article-categories/delete/categoryId`\n\nUpdate`dataStatus remove` article category data\n\n\u003cdetails\u003e\n    \u003csummary\u003eShow API\u003c/summary\u003e\n\n**Header Authorization**\n\n- `Authorization`, token =\u003e user token\n\n**Sample Request**\n\n```json\n{\n    Bearer 378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f378grfuyehbcjhasdbfasldfuoa78f\n}\n```\n\n**Success Response**\n\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n{\n    \"code\": 200,\n    \"success\": true,\n    \"payload\": {\n        \"message\": \"Article category has been deleted\"\n    }\n}\n```\n\n**Error Response**\n\n- Bad Request\n\n```json\nHTTP/1.1 404 Not Found\nContent-Type: application/json\n\n{\n    \"code\": 404,\n    \"success\": false,\n    \"error\": {\n        \"name\": \"NotFoundError\",\n        \"message\": \"Article Category not found\"\n    }\n}\n\n```\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnascript%2Fapi-documentation-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnascript%2Fapi-documentation-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnascript%2Fapi-documentation-example/lists"}