{"id":20374788,"url":"https://github.com/gsuke/api-platform","last_synced_at":"2026-04-16T10:03:12.077Z","repository":{"id":184799419,"uuid":"442670985","full_name":"gsuke/api-platform","owner":"gsuke","description":"Generic REST API platform that allows you to create REST resources dynamically","archived":false,"fork":false,"pushed_at":"2022-01-26T09:22:02.000Z","size":255,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-03T20:59:45.079Z","etag":null,"topics":["asp-net","aspnetcore","csharp","docker","dotnet","json-schema","postgresql","webapi"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gsuke.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-12-29T05:36:12.000Z","updated_at":"2023-03-01T22:56:50.000Z","dependencies_parsed_at":"2023-07-30T10:44:29.160Z","dependency_job_id":null,"html_url":"https://github.com/gsuke/api-platform","commit_stats":null,"previous_names":["gsuke/api-platform"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gsuke/api-platform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsuke%2Fapi-platform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsuke%2Fapi-platform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsuke%2Fapi-platform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsuke%2Fapi-platform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gsuke","download_url":"https://codeload.github.com/gsuke/api-platform/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsuke%2Fapi-platform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31880884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["asp-net","aspnetcore","csharp","docker","dotnet","json-schema","postgresql","webapi"],"created_at":"2024-11-15T01:26:56.479Z","updated_at":"2026-04-16T10:03:12.039Z","avatar_url":"https://github.com/gsuke.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"= API Platform\n\nユーザが動的にリソースを作成および利用できる汎用的なAPI基盤。\n任意のリソースを作成し、そのリソースに対してCRUDを実行できます。\n\n※ 開発中\n\n== Demo\n\n. 試しに、ToDo管理のためのリソース「**todo**」を作成してみます。\n+\nimage::docs/imgs/demo-001.png[]\n+\n.todoリソースのデータスキーマの詳細\n|===\n|プロパティ名|型|役割\n\n|id|文字列|主キーになる\n|task_name|文字列|タスクの名前\n|===\n\n. 作成したToDo管理リソースに対して、Postメソッドを実行してタスクを追加します。\n+\nimage::docs/imgs/demo-002.png[]\n\n. Getメソッドを実行することで、追加したタスク一覧を確認できます。\n+\nimage::docs/imgs/demo-003.png[]\n\n. 他にもDeleteなどのCRUDが実装されています。データスキーマを好きな形に変更することによって、様々なユースケースで活用できます。\n\n== Usage\n\n=== Requirements\n\n.実行環境\n* https://docs.microsoft.com/ja-jp/dotnet/core/install/[.NET 6]\n* Docker\n\n.ツール\n* https://code.visualstudio.com/[Visual Studio Code] (開発環境)\n* https://www.postman.com/[Postman] などの Web API テストツール\n* https://dbeaver.io/[DBeaver] などのSQLクライアントツール\n\n=== Installation\n\n. docker ディレクトリ内で `docker-compose up -d` を実行する。\n\n. docker/.env ファイルのデータベース接続情報を書き換える。\n\n. DBeaver を用いてデータベースにアクセスする。アクセス情報の例は以下。(.envファイルを書き換えていない場合)\n+\n* Host: localhost\n* Port: 5432\n* データベース名: db\n* ユーザ名: root\n* パスワード: pass\n\n. docker/ddl.sql ファイルのテーブル生成SQLを実行する。\n\n. VS Code で Gsuke.ApiPlatform ディレクトリを開く。\n\n. Ctrl + F5 キーを押下してプロジェクトを実行する。\n\n. Postman を用いて https://localhost:7033/resource にアクセスし、 `[]` が返却されることを確認する。\n+\nimage::docs/imgs/installation-001.png[]\n+\nimage::docs/imgs/installation-002.png[]\n\n=== Tutorials\n\n※ 執筆中\n\n=== Documents\n\nlink:docs/index.adoc[※ 執筆中]\n\n== License\n\nlink:LICENSE[MIT LICENSE]\n\n== 今後の予定\n\n* 自動テストを実装\n* デプロイ\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsuke%2Fapi-platform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsuke%2Fapi-platform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsuke%2Fapi-platform/lists"}