{"id":24770772,"url":"https://github.com/okamyuji/json-server-custom","last_synced_at":"2026-04-28T21:02:07.520Z","repository":{"id":272031041,"uuid":"915329932","full_name":"okamyuji/json-server-custom","owner":"okamyuji","description":"A customizable mock API server built with Node.js and json-server. Provides RESTful endpoints for managing users, products, and orders with data persistence and easy local development.","archived":false,"fork":false,"pushed_at":"2025-01-11T15:13:51.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T20:31:31.045Z","etag":null,"topics":["backend","development","json-server","mock-api","nodejs","rest-api","webserver"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/okamyuji.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":"2025-01-11T15:13:49.000Z","updated_at":"2025-01-19T05:19:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"301ba697-34c1-4506-baca-6a09ef5c5a6a","html_url":"https://github.com/okamyuji/json-server-custom","commit_stats":null,"previous_names":["okamyuji/json-server-custom"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/okamyuji/json-server-custom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamyuji%2Fjson-server-custom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamyuji%2Fjson-server-custom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamyuji%2Fjson-server-custom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamyuji%2Fjson-server-custom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okamyuji","download_url":"https://codeload.github.com/okamyuji/json-server-custom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okamyuji%2Fjson-server-custom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32399010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: 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":["backend","development","json-server","mock-api","nodejs","rest-api","webserver"],"created_at":"2025-01-29T03:56:28.339Z","updated_at":"2026-04-28T21:02:07.515Z","avatar_url":"https://github.com/okamyuji.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Server Custom\n\nカスタマイズされたJSON Serverを使用したモックAPIサーバー。ユーザー、商品、注文データを管理するRESTful APIを提供します。\n\n## 機能\n\n- カスタムルーティング\n- 複数のデータエンドポイント（ユーザー、商品、注文）\n- IDの重複チェック\n- JSON形式でのデータ永続化\n- データの更新（PUT）機能\n\n## エンドポイント\n\n各エンドポイントで以下のHTTPメソッドが利用可能です：\n\n### GET\n\n- `/users` - ユーザー情報の取得\n- `/products` - 商品情報の取得\n- `/orders` - 注文情報の取得\n\n### POST\n\n新規データの作成。IDの重複がある場合はエラーを返します。\n\n### PUT\n\n既存データの更新。指定されたIDのデータを更新します。\n\n使用例：\n\n```bash\n# データの更新\ncurl -X PUT -H \"Content-Type: application/json\" -d '{\"id\": 1, \"name\": \"Updated Name\"}' http://localhost:3000/users\n```\n\n## データ構造\n\n### Users\n\n```json\n{\n  \"id\": 1,\n  \"name\": \"Alice\"\n}\n```\n\n### Products\n\n```json\n{\n  \"id\": 1,\n  \"name\": \"Laptop\",\n  \"price\": 1000\n}\n```\n\n### Orders\n\n```json\n{\n  \"id\": 1,\n  \"userId\": 1,\n  \"orderDate\": \"2024-02-15\",\n  \"items\": [\n    {\n      \"productId\": 1,\n      \"quantity\": 1,\n      \"price\": 1000\n    }\n  ],\n  \"totalAmount\": 2000,\n  \"status\": \"delivered\"\n}\n```\n\n## セットアップ\n\n- 依存パッケージのインストール\n\n```bash\nnpm install\n```\n\n- サーバーの起動\n\n```bash\nnpm start\n```\n\nサーバーは `http://localhost:3000` で起動します。\n\n## 技術スタック\n\n- Node.js\n- json-server (v0.17.4)\n- nodemon (開発用)\n\n## 開発\n\nこのプロジェクトは `nodemon` を使用して開発しています。ファイルの変更を検知して自動的にサーバーを再起動します。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokamyuji%2Fjson-server-custom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokamyuji%2Fjson-server-custom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokamyuji%2Fjson-server-custom/lists"}