{"id":18588032,"url":"https://github.com/peimelo/toh-json-server-api","last_synced_at":"2026-02-02T21:42:31.236Z","repository":{"id":84827859,"uuid":"447835056","full_name":"peimelo/toh-json-server-api","owner":"peimelo","description":"Tour of Heroes Mock API example using json-server.","archived":false,"fork":false,"pushed_at":"2022-01-26T00:00:56.000Z","size":40,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-24T18:09:57.965Z","etag":null,"topics":["api","javascript","json-server","tour-of-heroes"],"latest_commit_sha":null,"homepage":"https://toh-json-server-api.vercel.app/api","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":"2022-01-14T03:50:45.000Z","updated_at":"2023-11-16T13:59:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"93af02f3-b48a-4fc4-a92d-d5c58699a626","html_url":"https://github.com/peimelo/toh-json-server-api","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/peimelo%2Ftoh-json-server-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Ftoh-json-server-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Ftoh-json-server-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Ftoh-json-server-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peimelo","download_url":"https://codeload.github.com/peimelo/toh-json-server-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244217947,"owners_count":20417677,"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":["api","javascript","json-server","tour-of-heroes"],"created_at":"2024-11-07T00:44:28.256Z","updated_at":"2026-02-02T21:42:26.202Z","avatar_url":"https://github.com/peimelo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tour of Heroes Mock API Server\n\nTour of Heroes Mock API example using [json-server](https://github.com/typicode/json-server).\n\n## Configuration\n\n```bash\ngit clone https://github.com/peimelo/toh-json-server-api.git\ncd toh-json-server-api\n\n# installation of dependencies\nnpm install\n\n# run the project\nnpm start\n```\n\nThe backend is available at `http://localhost:3001/api`\n\n## API Endpoints\n\nThe following endpoints are available:\n\n| Endpoints                   | Usage                                 | Params              |\n| --------------------------- | ------------------------------------- | ------------------- |\n| `GET /api/heroes`           | Get all of the heroes.                |                     |\n| `GET /api/heroes?name=term` | Get all heroes with name like a term. | **term** - [String] |\n| `GET /api/heroes/:id`       | Get the details of a single hero.     |                     |\n| `POST /api/heroes`          | Add a new hero.                       | **name** - [String] |\n| `PUT /api/heroes/:id`       | Edit the details of an existing hero. | **name** - [String] |\n| `DELETE /api/heroes/:id`    | Remove the hero.                      |                     |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeimelo%2Ftoh-json-server-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeimelo%2Ftoh-json-server-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeimelo%2Ftoh-json-server-api/lists"}