{"id":18588108,"url":"https://github.com/peimelo/json-server-api","last_synced_at":"2026-07-18T12:35:34.482Z","repository":{"id":84827815,"uuid":"336407770","full_name":"peimelo/json-server-api","owner":"peimelo","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-05T23:22:33.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T07:11:27.630Z","etag":null,"topics":["api","javascript","json-server"],"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/peimelo.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":"2021-02-05T22:52:22.000Z","updated_at":"2022-11-21T23:54:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"ebc85014-67c9-4677-8d26-ca7360aaa25e","html_url":"https://github.com/peimelo/json-server-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peimelo/json-server-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fjson-server-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fjson-server-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fjson-server-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fjson-server-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peimelo","download_url":"https://codeload.github.com/peimelo/json-server-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fjson-server-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017145,"owners_count":26085984,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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":["api","javascript","json-server"],"created_at":"2024-11-07T00:44:43.213Z","updated_at":"2025-10-13T22:40:16.372Z","avatar_url":"https://github.com/peimelo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Json Server API\n\nExample of how to use [Json Server](https://github.com/typicode/json-server) as API.\n\nTo install and start the API server, run the following commands in this directory:\n\n```bash\nnpm install\nnode api\n```\n\nOpen `http://localhost:3001`\n\n## Using The API\n\n### Include An Authorization Header\n\nAll requests should use an **Authorization header** to work with your own data:\n\n```js\nfetch(url, {\n  headers: { Authorization: 'whatever-you-want' },\n});\n```\n\n### API Endpoint\n\nThe following endpoints are available:\n\n| Endpoints               | Usage                                 | Params                                          |\n| ----------------------- | ------------------------------------- | ----------------------------------------------- |\n| `GET /api/posts`        | Get all of the posts.                 |                                                 |\n| `POST /api/posts`       | Add a new post.                       | **title** - [String] \u003cbr\u003e **author** - [String] |\n| `GET /api/posts/:id`    | Get the details of a single post.     |                                                 |\n| `PUT /api/posts/:id`    | Edit the details of an existing post. | **title** - [String] \u003cbr\u003e **author** - [String] |\n| `DELETE /api/posts/:id` | Delete a post.                        |                                                 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeimelo%2Fjson-server-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeimelo%2Fjson-server-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeimelo%2Fjson-server-api/lists"}