Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amrutprabhu/spring-boot-api-first-approach
This a sample application for generating client and server code using open api generator plugin
https://github.com/amrutprabhu/spring-boot-api-first-approach
apifirst rest-api spring-boot
Last synced: 20 days ago
JSON representation
This a sample application for generating client and server code using open api generator plugin
- Host: GitHub
- URL: https://github.com/amrutprabhu/spring-boot-api-first-approach
- Owner: amrutprabhu
- Created: 2021-03-10T20:46:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-11T16:06:19.000Z (about 1 year ago)
- Last Synced: 2024-10-12T12:51:40.687Z (about 1 month ago)
- Topics: apifirst, rest-api, spring-boot
- Language: Java
- Homepage: https://refactorfirst.com
- Size: 67.4 KB
- Stars: 7
- Watchers: 1
- Forks: 10
- Open Issues: 7
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= Spring Boot: API First Approach
This is a sample code on how you can work with API first approach.
In this I use the API contract (based on Open API 3 standards) for creating client and server side code.The maven plugin that I have used here is the `Open API generator plugin` from https://openapi-generator.tech/docs/plugins[here]
It has support for various languages and also various ways of creating your client or server code.
There are various customization options available that you can use, which you can checkout at the GitHub link https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-maven-plugin[here]
In this sample, I have used `spring` generator for server side generation and `java` for client side code generation.
== About the application
Its a simple application , wherein you can trigger the client to server communication using another API.This is just to demostrate, how the client and server code is generated and how you use it in the application.