{"id":20830407,"url":"https://github.com/javiertuya/samples-openapi","last_synced_at":"2025-05-07T22:24:06.577Z","repository":{"id":37801595,"uuid":"475535862","full_name":"javiertuya/samples-openapi","owner":"javiertuya","description":"Samples of generation of rest server and client api components with OpenApi and Swagger","archived":false,"fork":false,"pushed_at":"2025-05-01T15:23:06.000Z","size":245,"stargazers_count":5,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-01T15:42:00.656Z","etag":null,"topics":["api","openapi","rest","swagger"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javiertuya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-03-29T16:49:27.000Z","updated_at":"2025-04-02T17:54:02.000Z","dependencies_parsed_at":"2024-03-30T12:23:18.525Z","dependency_job_id":"9aeec5c1-aebc-4798-b7f3-99aeb46c6007","html_url":"https://github.com/javiertuya/samples-openapi","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/javiertuya%2Fsamples-openapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiertuya%2Fsamples-openapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiertuya%2Fsamples-openapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiertuya%2Fsamples-openapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javiertuya","download_url":"https://codeload.github.com/javiertuya/samples-openapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252963087,"owners_count":21832455,"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","openapi","rest","swagger"],"created_at":"2024-11-17T23:24:25.984Z","updated_at":"2025-05-07T22:24:06.570Z","avatar_url":"https://github.com/javiertuya.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Samples of generation of rest server and client api components with OpenApi \n\nThis is a multimodule maven project that includes samples to generate rest services \nbased on a OpenApi V3 specification:\n\n- *server-spring*: Rest server (Spring Boot 3, Java 17)\n- *client-resttemplate*: Java client api (Spring 6 and Fasterxml, Java 17)\n- *client-httpclient*: Java client api (Apache Httpclient 5 and Fasterxml, Java 8)\n- *client-netcore*: .NET Core client api (RestSharp and Newtonsosft.Json, net 6.0)\n- *client-netstandard*: .NET Core client api (RestSharp and Newtonsosft.Json, netstandar 2.0)\n\n## Notes\n- To generate the api for all modules (including .NET Core) run `mvn generate-sources` from the project root\n- The server is located in *server-spring* module at `giis.samples.openapi.invoker.OpenAPI2SpringBoot` or in an executable jar (if generated with `mvn package`)\n- To run from Eclipse, ensure that the generated sources (`target/generated-sources/copenapi/src/main/java`) are included in the build path\n- The .NET clients can be run from Visual Studio at `client-netcore/client-netcore.sln` and `client-netstandard/client-netstandard.sln`(each project is linked with the generated api code)\n- The OpenApi schema is common for all modules, located at [schema/api.yml](schema/api.yml)\n- Endpoints of services are `localhost:8080`\n- Server is tested in a temurin java jre container\n\n## Useful links\n- [OpenApi overview](https://swagger.io/docs/specification/about/)\n- [OpenApi generator](https://github.com/OpenAPITools/openapi-generator)\n- [OpenApi generator maven plugin](https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-maven-plugin)\n- [Generators list and platform specific configuration](https://openapi-generator.tech/docs/generators/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviertuya%2Fsamples-openapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaviertuya%2Fsamples-openapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviertuya%2Fsamples-openapi/lists"}