{"id":19926130,"url":"https://github.com/ittokunvim/example-actix-web","last_synced_at":"2026-05-09T12:36:43.022Z","repository":{"id":142955758,"uuid":"537936514","full_name":"ittokunvim/example-actix-web","owner":"ittokunvim","description":"Actix-web and Seaorm API","archived":false,"fork":false,"pushed_at":"2023-07-11T15:04:05.000Z","size":228,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T00:32:52.633Z","etag":null,"topics":["actix-web","seaorm"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/ittokunvim.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-09-17T21:40:03.000Z","updated_at":"2024-05-15T12:53:15.000Z","dependencies_parsed_at":"2024-11-19T20:48:26.808Z","dependency_job_id":null,"html_url":"https://github.com/ittokunvim/example-actix-web","commit_stats":null,"previous_names":["ittokunvim/api-ittoku-tech","ittokunvim/example-actix-web"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ittokunvim%2Fexample-actix-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ittokunvim%2Fexample-actix-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ittokunvim%2Fexample-actix-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ittokunvim%2Fexample-actix-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ittokunvim","download_url":"https://codeload.github.com/ittokunvim/example-actix-web/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241354990,"owners_count":19949291,"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":["actix-web","seaorm"],"created_at":"2024-11-12T22:28:08.537Z","updated_at":"2026-05-09T12:36:37.998Z","avatar_url":"https://github.com/ittokunvim.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# example-rust-api\n\nこのリポジトリには、Rust言語の`actix-web`と`seaorm`を組み合わせたAPIサーバーを構成するためのソースコードがあります。\n\n以下のコマンドを実行することで、動作を確認することができます。\n\n試してみましょう！\n\n### 動作要件\n\nここにあるソースコードを実行するためには`Docker`が必要になります。\n\nインストールしておきましょう。\n\n### 動かす\n\nAPIの立ち上げ\n\n```bash\nmake run\n```\n\nAPIの終了\n\n```bash\nmake down\n```\n\nデータベースにアクセス\n\n```bash\nmake db-access\n```\n\nAPIにアクセス\n\n```bash\nmake api-bash\n```\n\nAPIのテストを実行\n\n```bash\nmake api-test\n```\n\n### 操作する\n\nルートにアクセス\n\n```bash\ncurl http://0.0.0.0:8080\n```\n\n記事を投稿する\n\n```bash\ncurl http://0.0.0.0:8080/posts -X POST -H 'Content-Type: application/json' -d '{\"title\": \"bar\", \"text\": \"bar\"}'\n```\n\n記事を閲覧する\n\n```bash\ncurl http://0.0.0.0:8080/posts/1\n```\n\n記事を編集する\n\n```bash\ncurl http://0.0.0.0:8080/posts/1 -X PATCH -H 'Content-Type: application/json' -d '{\"title\": \"bar\", \"text\": \"bar\"}'\n```\n\n記事のリストを見る\n\n```bash\ncurl http://0.0.0.0:8080/posts\n```\n\n記事を削除する\n\n```bash\ncurl http://0.0.0.0:8080/posts/1 -X DELETE\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fittokunvim%2Fexample-actix-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fittokunvim%2Fexample-actix-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fittokunvim%2Fexample-actix-web/lists"}