{"id":23958355,"url":"https://github.com/ningenme/miiko-api","last_synced_at":"2026-05-09T06:03:42.202Z","repository":{"id":154011450,"uuid":"629654355","full_name":"ningenMe/miiko-api","owner":"ningenMe","description":"趣味開発 compro-api (product name: miiko)","archived":false,"fork":false,"pushed_at":"2025-04-13T18:34:09.000Z","size":149,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-12T03:47:14.665Z","etag":null,"topics":["connect","golang","grpc","ningenme-project","protobuf"],"latest_commit_sha":null,"homepage":"https://ningenme.net/compro-category","language":"TypeScript","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/ningenMe.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}},"created_at":"2023-04-18T18:52:25.000Z","updated_at":"2025-04-13T18:34:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc1c0259-f905-4d1b-b6a8-365155e0a548","html_url":"https://github.com/ningenMe/miiko-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ningenMe/miiko-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ningenMe%2Fmiiko-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ningenMe%2Fmiiko-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ningenMe%2Fmiiko-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ningenMe%2Fmiiko-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ningenMe","download_url":"https://codeload.github.com/ningenMe/miiko-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ningenMe%2Fmiiko-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32809148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["connect","golang","grpc","ningenme-project","protobuf"],"created_at":"2025-01-06T17:38:09.802Z","updated_at":"2026-05-09T06:03:42.198Z","avatar_url":"https://github.com/ningenMe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# miiko-api\n\n- TODO\n    - displaynameの自動取得を追加\n    - 最近updateのあったトピック一覧を出す\n    - 最近updateのあった問題一覧を出す\n    - problem deleteに保護 + 作成\n    - category deleteに保護 + 作成\n    - topic deleteに保護 + 作成\n\n    - カテゴリー一覧を別ページで作る\n    - topicのupdateの契機を子データにも依存させる\n    - problem作成時に失敗したらエラーを表示する\n\n    - sp確認\n    - 画面遷移がもっさりしてる\n\n- how to build proto\n\n```shell\ncd proto\nbuf lint\nnpx buf generate miiko\n```\n\n- how to set env-variable\n\n```shell\n`aws ssm get-parameters-by-path --path \"/\" --region ap-northeast-1 --output text | awk '{print \"export\",$5\"=\"$7}'`\n```\n\n## health\n\n```shell\ncurl -XPOST -H 'Content-Type: application/json' -d '{}' localhost:8081/miiko.v1.HealthService/Check -i\n```\n\n## url\n\n```shell\ncurl -XPOST -H 'Content-Type: application/json' -d '{\n  \"url\" : \"https://ningenme.net\"\n}' localhost:8081/miiko.v1.MiikoService/UrlGet -i\n```\n\n## statistics\n\n```shell\ncurl -XPOST -H 'Content-Type: application/json' -d '{\n}' localhost:8081/miiko.v1.MiikoService/StatisticsGet -i\n```\n\n## category\n\n```shell\ncurl -XPOST -H 'Content-Type: application/json' -d '\n{\n  \"isRequiredTopic\": true\n}\n' localhost:8081/miiko.v1.MiikoService/CategoryListGet -i\ncurl -XPOST -H 'Content-Type: application/json' -d '\n    {\n      \"category\" : {\n        \"categoryDisplayName\": \"テスト\",\n        \"categorySystemName\": \"test\",\n        \"categoryOrder\": 1\n      }\n    }\n' localhost:8081/miiko.v1.MiikoService/CategoryPost -i\ncurl -XPOST -H 'Content-Type: application/json' -d '\n    {\n      \"categoryId\" : \"category_BKL1Q5\",\n      \"category\" : {\n        \"categoryDisplayName\": \"テスト改\",\n        \"categorySystemName\": \"test2\",\n        \"categoryOrder\": -1\n      }\n    }\n' localhost:8081/miiko.v1.MiikoService/CategoryPost -i\ncurl -XPOST -H 'Content-Type: application/json' -d '\n    {\n      \"categoryId\" : \"category_BKL1Q5\"\n    }\n' localhost:8081/miiko.v1.MiikoService/CategoryPost -i\n```\n\n## topic\n\n```shell\ncurl -XPOST -H 'Content-Type: application/json' -d '\n    {\n      \"categorySystemName\" : \"accumulate\"\n    }\n' localhost:8081/miiko.v1.MiikoService/TopicListGet -i\ncurl -XPOST -H 'Content-Type: application/json' -d '\n    {\n      \"categorySystemName\" : \"accumulate\"\n    }\n' https://miiko-api.ningenme.net/miiko.v1.MiikoService/TopicListGet -i\ncurl -XPOST -H 'Content-Type: application/json' -d '\n    {\n      \"topic\" : {\n        \"topicDisplayName\": \"テスト改\",\n        \"topicOrder\": 10\n      },\n      \"categoryId\" : \"category_000021\"\n    }\n' -b 'NINGENME_NET_SESSION=\u003c\u003e' localhost:8081/miiko.v1.MiikoService/TopicPost -i\ncurl -XPOST -H 'Content-Type: application/json' -d '\n    {\n      \"topicId\" : \"topic_HMX3VH\",\n      \"topic\" : {\n        \"topicDisplayName\": \"テスト改2\",\n        \"topicOrder\": 10\n      },\n      \"categoryId\" : \"category_000021\"\n    }\n' -b 'NINGENME_NET_SESSION=\u003c\u003e' localhost:8081/miiko.v1.MiikoService/TopicPost -i\n```\n\n## problem\n\n```shell\ncurl -XPOST -H 'Content-Type: application/json' -d '\n{\n  \"limit\" : 100,\n  \"offset\" : 0,    \n  \"isDesc\" : true\n}\n' localhost:8081/miiko.v1.MiikoService/ProblemListGet -i\ncurl -XPOST -H 'Content-Type: application/json' -d '\n{\n  \"problemId\" : \"problem_000022\"\n}\n' localhost:8081/miiko.v1.MiikoService/ProblemGet -i\ncurl -XPOST -H 'Content-Type: application/json' -d '\n{\n  \"problem\" : {\n    \"url\" : \"https://ningenme.net/piyo\",\n    \"problemDisplayName\" : \"テスト\",\n    \"estimation\" : 100\n  }\n}\n' localhost:8081/miiko.v1.MiikoService/ProblemPost -i\n```\n\n```mysql\nINSERT INTO topic (topic_id, category_id, topic_display_name, topic_order)\nVALUES ('topic_R6J23B', 'category_1J6WNP', 'テスト', 10);\nINSERT INTO problem (problem_id, url, problem_display_name, estimation)\nVALUES ('problem_R21112', 'https://qiita.com/', 'テスト問題', 100);\nINSERT INTO relation_topic_problem (topic_id, problem_id)\nVALUES ('topic_R6J23B', 'problem_R21112');\nINSERT INTO problem (problem_id, url, problem_display_name, estimation)\nVALUES ('problem_R21113', 'https://zenn.dev/', 'テスト問題2', 100);\nINSERT INTO relation_topic_problem (topic_id, problem_id)\nVALUES ('topic_R6J23B', 'problem_R21113');\n```\n\n```mysql\nDELETE\nFROM category;\n\nINSERT INTO category (category_id, category_display_name, category_system_name, category_order)\nSELECT CONCAT('category_', LPAD(CAST(genre_id AS CHAR), 6, '0')) AS category_id,\n       genre_name                                                AS category_display_name,\n       path                                                      AS category_system_name,\n       genre_order                                               AS category_order\nFROM zz_genre\nWHERE deleted_time IS null;\n```\n\n```mysql\nDELETE\nFROM category;\n\nINSERT INTO category (category_id, category_display_name, category_system_name, category_order)\nSELECT CONCAT('category_', LPAD(CAST(genre_id AS CHAR), 6, '0')) AS category_id,\n       genre_name                                                AS category_display_name,\n       path                                                      AS category_system_name,\n       genre_order                                               AS category_order\nFROM zz_genre\nWHERE deleted_time IS null;\n```\n\n```mysql\nDELETE\nFROM topic;\n\nINSERT INTO topic (topic_id, category_id, topic_display_name, topic_order)\nSELECT CONCAT('topic_', LPAD(CAST(topic_id AS CHAR), 6, '0'))    AS topic_id,\n       CONCAT('category_', LPAD(CAST(genre_id AS CHAR), 6, '0')) AS category_id,\n       topic_name                                                AS topic_display_name,\n       topic_order                                               AS topic_order\nFROM zz_topic\nWHERE deleted_time IS null;\n```\n\n```mysql\nDELETE\nFROM problem;\n\nINSERT IGNORE INTO problem (problem_id, url, problem_display_name, estimation)\nSELECT CONCAT('problem_', UPPER(LPAD(CAST(task_id AS CHAR), 6, '0'))) AS problem_id,\n       url                                                            AS url,\n       task_name                                                      AS problem_display_name,\n       estimation                                                     AS estimation\nFROM zz_task\nWHERE deleted_time IS null;\n```\n\n```mysql\nINSERT IGNORE INTO relation_topic_problem (topic_id, problem_id)\nSELECT CONCAT('topic_', LPAD(CAST(topic_id AS CHAR), 6, '0'))         AS topic_id,\n       CONCAT('problem_', UPPER(LPAD(CAST(task_id AS CHAR), 6, '0'))) AS problem_id\nFROM zz_relation_topic_task;\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fningenme%2Fmiiko-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fningenme%2Fmiiko-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fningenme%2Fmiiko-api/lists"}