{"id":22642702,"url":"https://github.com/aliefabdillah/blog-api-spring","last_synced_at":"2026-05-05T19:32:01.629Z","repository":{"id":266264689,"uuid":"895530972","full_name":"aliefabdillah/blog-api-spring","owner":"aliefabdillah","description":"Simple Blog API using spring boot with kotlin, mongodb, JWT auth, and redis cache","archived":false,"fork":false,"pushed_at":"2024-12-05T15:15:53.000Z","size":191,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-07T07:20:49.119Z","etag":null,"topics":["jwt","kotlin","mongodb","oauth2","redis","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/aliefabdillah.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-28T11:36:48.000Z","updated_at":"2024-12-05T15:16:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"2f8c0581-4d72-489a-857c-fcdb51a0c809","html_url":"https://github.com/aliefabdillah/blog-api-spring","commit_stats":null,"previous_names":["aliefabdillah/blog-api-spring"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aliefabdillah/blog-api-spring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliefabdillah%2Fblog-api-spring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliefabdillah%2Fblog-api-spring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliefabdillah%2Fblog-api-spring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliefabdillah%2Fblog-api-spring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aliefabdillah","download_url":"https://codeload.github.com/aliefabdillah/blog-api-spring/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliefabdillah%2Fblog-api-spring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32664833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["jwt","kotlin","mongodb","oauth2","redis","spring-boot"],"created_at":"2024-12-09T05:08:05.789Z","updated_at":"2026-05-05T19:32:01.624Z","avatar_url":"https://github.com/aliefabdillah.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blog API Spec\n\n## Authentication\n\n### OAuth\nRequest :\n- Method : GET\n- Endpoint : `/index.html`\n\nResponse :\n\n```json\n{\n  \"token\": \"string\",\n  \"token_type\": \"string\"\n}\n```\n\n### Register\nRequest : \n- Method : POST\n- Endpoint : `/api/user/register`\n- Header : \n  - Content-Type: application/json\n  - Accept: application/json\n- Body :\n```json\n{\n    \"name\":\"string\",\n    \"email\":\"string|email\",\n    \"password\":\"string|min(6)\"\n}\n```\nResponse :\n```json\n{\n    \"status\": \"CREATED\",\n    \"code\": 201,\n    \"data\": {\n        \"id\": \"string\",\n        \"name\": \"string\",\n        \"email\": \"string\",\n        \"imgProfile\": \"string\",\n        \"createdAt\": \"date\",\n        \"updatedAt\": \"date\"\n    }\n}\n```\n\n### Login\nRequest :\n- Method : POST\n- Endpoint : `/api/user/login`\n- Header :\n    - Content-Type: application/json\n    - Accept: application/json\n- Body :\n```json\n{\n    \"email\":\"string|email\",\n    \"password\":\"string|min(6)\"\n}\n```\nResponse :\n```json\n{\n  \"status\": \"OK\",\n  \"code\": 200,\n  \"data\": {\n    \"token\": \"string\"\n  }\n}\n```\n\n## User\n### User Profile\nRequest :\n- Method : GET\n- Endpoint : `/api/user/me`\n- Header :\n  - Authorization : Bearer `JWT_TOKEN`\nResponse :\n```json\n{\n  \"status\": \"OK\",\n  \"code\": 200,\n  \"data\": {\n    \"id\": \"string\",\n    \"name\": \"string\",\n    \"email\": \"string\",\n    \"imgProfile\": \"string\",\n    \"createdAt\": \"date\",\n    \"updatedAt\": \"date\"\n  }\n}\n```\n\n### User Details\nRequest :\n- Method : GET\n- Endpoint : `/api/user/me/details`\n- Header :\n  - Authorization : Bearer `JWT_TOKEN`\nResponse :\n```json\n{\n  \"status\": \"OK\",\n  \"code\": 200,\n  \"data\": {\n    \"id\": \"string\",\n    \"name\": \"string\",\n    \"email\": \"string\",\n    \"imgProfile\": \"string\",\n    \"createdAt\": \"date\",\n    \"updatedAt\": \"date\",\n    \"articles\": [\n      {\n        \"id\": \"string\",\n        \"title\": \"string\",\n        \"content\": \"string\",\n        \"imgCover\": \"string\",\n        \"authorId\": \"string\",\n        \"createdAt\": \"date\",\n        \"updatedAt\": \"date\"\n      },\n      {\n        \"id\": \"string\",\n        \"title\": \"string\",\n        \"content\": \"string\",\n        \"imgCover\": \"string\",\n        \"authorId\": \"string\",\n        \"createdAt\": \"date\",\n        \"updatedAt\": \"date\"\n      }\n    ]\n  }\n}\n```\n\n### Update Profile\nRequest :\n- Method : PATCH\n- Endpoint : `/api/user/me`\n- Header :\n  - Authorization : Bearer `JWT_TOKEN`\n  - Content-Type: form-data\n  - Accept: form-data\n- Body :\n```text\n  - name : Text\n  - files : Single File\n```\nResponse :\n```json\n{\n  \"status\": \"OK\",\n  \"code\": 200,\n  \"data\": {\n    \"id\": \"string\",\n    \"name\": \"string\",\n    \"email\": \"string\",\n    \"imgProfile\": \"string\",\n    \"createdAt\": \"date\",\n    \"updatedAt\": \"date\"\n  }\n}\n```\n\n## Article\n### Create Article\nRequest :\n- Method : POST\n- Endpoint : `/api/article`\n- Header :\n  - Authorization : Bearer `JWT_TOKEN`\n  - Content-Type: form-data\n  - Accept: form-data\n- Body :\n```text\n  - title : Text\n  - content : Text\n  - files : Single File\n```\nResponse :\n```json\n{\n  \"status\": \"CREATED\",\n  \"code\": 201,\n  \"data\": {\n    \"id\": \"string\",\n    \"title\": \"string\",\n    \"content\": \"string\",\n    \"imgCover\": \"string\",\n    \"authorId\": \"string\",\n    \"createdAt\": \"date\",\n    \"updatedAt\": \"date\",\n    \"author\": {\n      \"id\": \"string\",\n      \"name\": \"string\",\n      \"email\": \"string\",\n      \"imgProfile\": \"string\",\n      \"createdAt\": \"date\",\n      \"updatedAt\": \"date\"\n    }\n  }\n}\n```\n\n### Get Details Article\nRequest :\n- Method : GET\n- Endpoint : `/api/article/{id}`\n\nResponse :\n```json\n{\n  \"status\": \"OK\",\n  \"code\": 200,\n  \"data\": {\n    \"id\": \"string\",\n    \"title\": \"string\",\n    \"content\": \"string\",\n    \"imgCover\": \"string\",\n    \"authorId\": \"string\",\n    \"createdAt\": \"date\",\n    \"updatedAt\": \"date\",\n    \"author\": {\n      \"id\": \"string\",\n      \"name\": \"string\",\n      \"email\": \"string\",\n      \"imgProfile\": \"string\",\n      \"createdAt\": \"date\",\n      \"updatedAt\": \"date\"\n    }\n  }\n}\n```\n\n### List Article\nRequest :\n- Method : GET\n- Endpoint : `/api/article/list?query1=...`\n- Query :\n  ```text\n    - size : number|min(1)\n    - page : number|min(0)\n    - title : string\n    - authorName: string\n  ```\nResponse :\n\n```json\n{\n  \"status\": \"OK\",\n  \"code\": 200,\n  \"pagination\": {\n    \"current\": 1,\n    \"perPage\": 1,\n    \"lastPage\": 1,\n    \"total\": 1\n  },\n  \"data\": [\n    {\n      \"id\": \"string\",\n      \"title\": \"string\",\n      \"content\": \"string\",\n      \"imgCover\": \"string\",\n      \"authorId\": \"string\",\n      \"createdAt\": \"date\",\n      \"updatedAt\": \"date\",\n      \"author\": {\n        \"id\": \"string\",\n        \"name\": \"string\",\n        \"email\": \"string\",\n        \"imgProfile\": \"string\",\n        \"createdAt\": \"date\",\n        \"updatedAt\": \"date\"\n      }\n    }\n  ]\n}\n```\n\n### Update Article\nRequest :\n- Method : PATCH\n- Endpoint : `/api/article/{id}`\n- Header :\n  - Authorization : Bearer `JWT_TOKEN`\n  - Content-type : multipart/form-data\n  - Accept : /**\n- Body :\n```text\n  - title : Text\n  - content : Text\n  - files : Single File\n```\nResponse : \n```json\n{\n  \"status\": \"OK\",\n  \"code\": 200,\n  \"data\": {\n    \"id\": \"string\",\n    \"title\": \"string\",\n    \"content\": \"string\",\n    \"imgCover\": \"string\",\n    \"authorId\": \"string\",\n    \"createdAt\": \"date\",\n    \"updatedAt\": \"date\"\n  }\n}\n```\n\n### Delete Article\nRequest : \n- Method : DELETE\n- Endpoint : `/api/article/{id}`\n- Header : \n  - Authorization : Bearer `JWT_TOKEN`\n\nResponse :\n```json\n{\n    \"status\": \"OK\",\n    \"code\": 200,\n    \"data\": null\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliefabdillah%2Fblog-api-spring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliefabdillah%2Fblog-api-spring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliefabdillah%2Fblog-api-spring/lists"}