{"id":22870257,"url":"https://github.com/berquerant/weaver-pokemon-type","last_synced_at":"2025-09-23T06:32:44.864Z","repository":{"id":160068723,"uuid":"614966838","full_name":"berquerant/weaver-pokemon-type","owner":"berquerant","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-20T19:17:38.000Z","size":87,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-06T16:57:56.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/berquerant.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":"2023-03-16T17:14:54.000Z","updated_at":"2023-03-16T17:15:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8958a3e-8e48-435f-b360-2ade8a343af2","html_url":"https://github.com/berquerant/weaver-pokemon-type","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/berquerant%2Fweaver-pokemon-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fweaver-pokemon-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fweaver-pokemon-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fweaver-pokemon-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/berquerant","download_url":"https://codeload.github.com/berquerant/weaver-pokemon-type/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246460284,"owners_count":20781080,"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":[],"created_at":"2024-12-13T13:14:20.570Z","updated_at":"2025-09-23T06:32:39.798Z","avatar_url":"https://github.com/berquerant.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# weaver-pokemon-type\n\n## Init\n\n``` bash\nmake init\ndirenv allow\n```\n\n## Run\n\n``` bash\ndocker compose up -d\nmake seed\nmake\n./dist/server\n```\n\n## Dev\n\nRun `weaver generate` and other code generations.\n\n``` bash\nmake generate\n```\n\n## API\n\n### /type\n\n``` bash\n❯ curl \"localhost:21099/type\" -d '{\"name\":\"エスパー\"}'\n{\"item\":{\"id\":11,\"name\":\"エスパー\"}}\n```\n\n### /attack\n\n``` bash\n❯ curl \"localhost:21099/attack\" -d '{\"id\":11,\"index\":1}'|jq '.items[0]'\n{\n  \"pile\": [\n    {\n      \"id\": 181,\n      \"attack\": {\n        \"id\": 11,\n        \"name\": \"エスパー\"\n      },\n      \"defense\": {\n        \"id\": 1,\n        \"name\": \"ノーマル\"\n      },\n      \"multiplier\": 1\n    }\n  ],\n  \"multiplier\": 1\n}\n```\n\n``` bash\n❯ curl \"localhost:21099/attack\" -d '{\"id\":11,\"index\":2}'|jq '.items[0]'\n{\n  \"pile\": [\n    {\n      \"id\": 181,\n      \"attack\": {\n        \"id\": 11,\n        \"name\": \"エスパー\"\n      },\n      \"defense\": {\n        \"id\": 1,\n        \"name\": \"ノーマル\"\n      },\n      \"multiplier\": 1\n    },\n    {\n      \"id\": 182,\n      \"attack\": {\n        \"id\": 11,\n        \"name\": \"エスパー\"\n      },\n      \"defense\": {\n        \"id\": 2,\n        \"name\": \"ほのお\"\n      },\n      \"multiplier\": 1\n    }\n  ],\n  \"multiplier\": 1\n}\n```\n\n### /defense\n\n``` bash\n❯ curl \"localhost:21099/defense\" -d '{\"ids\":[11]}'|jq '.items[0]'\n{\n  \"pile\": [\n    {\n      \"id\": 119,\n      \"attack\": {\n        \"id\": 7,\n        \"name\": \"かくとう\"\n      },\n      \"defense\": {\n        \"id\": 11,\n        \"name\": \"エスパー\"\n      },\n      \"multiplier\": 0.5\n    }\n  ],\n  \"multiplier\": 0.5\n}\n```\n\n``` bash\n❯ curl \"localhost:21099/defense\" -d '{\"ids\":[11,7]}'|jq '.items[0]'\n{\n  \"pile\": [\n    {\n      \"id\": 65,\n      \"attack\": {\n        \"id\": 4,\n        \"name\": \"でんき\"\n      },\n      \"defense\": {\n        \"id\": 11,\n        \"name\": \"エスパー\"\n      },\n      \"multiplier\": 1\n    },\n    {\n      \"id\": 61,\n      \"attack\": {\n        \"id\": 4,\n        \"name\": \"でんき\"\n      },\n      \"defense\": {\n        \"id\": 7,\n        \"name\": \"かくとう\"\n      },\n      \"multiplier\": 1\n    }\n  ],\n  \"multiplier\": 1\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberquerant%2Fweaver-pokemon-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberquerant%2Fweaver-pokemon-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberquerant%2Fweaver-pokemon-type/lists"}