{"id":18663325,"url":"https://github.com/dpecos/rest-openapi-example","last_synced_at":"2025-10-14T08:38:15.267Z","repository":{"id":140524737,"uuid":"515234051","full_name":"dpecos/rest-openapi-example","owner":"dpecos","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-09T02:00:06.000Z","size":419,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T04:36:25.575Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/dpecos.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-07-18T15:10:52.000Z","updated_at":"2022-11-16T11:53:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff58ba4a-59bc-4206-8cff-2184b2d0c519","html_url":"https://github.com/dpecos/rest-openapi-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dpecos/rest-openapi-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpecos%2Frest-openapi-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpecos%2Frest-openapi-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpecos%2Frest-openapi-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpecos%2Frest-openapi-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpecos","download_url":"https://codeload.github.com/dpecos/rest-openapi-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpecos%2Frest-openapi-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018302,"owners_count":26086344,"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-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2024-11-07T08:16:03.304Z","updated_at":"2025-10-14T08:38:15.229Z","avatar_url":"https://github.com/dpecos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REST OpenAPI Example\n\n## Usage\n\n### Server\n\nTo run the server:\n\n```\nnpm run server\n```\n\n#### Testing the API\n\nTo retrieve the list of books:\n\n```\ncurl http://localhost:3000/books | jq\n```\n\nTo retrieve a specific book:\n\n```\ncurl http://localhost:3000/books/1 | jq\n```\n\nTo create a new book:\n\n```\ncurl -s --request POST --url http://localhost:3000/books --header 'content-type: application/json' --data '{\"id\": 2, \"title\" : \"New book\", \"author\": \"New author\", \"summary\" : \"This is a new Book\"}' | jq\n```\n\n#### Swagger UI\n\nYou can visit the Swagger generated documentation at this link:\n\nhttp://localhost:3000/api-docs\n\n## Client\n\nTo generate the OpenAPI clients (that could be imported directly in any TS project):\n\n```\nnpm run generate-client\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpecos%2Frest-openapi-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpecos%2Frest-openapi-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpecos%2Frest-openapi-example/lists"}