Wednesday, January 30, 2019

Rapid Application Development With API First Approach Using Open-API Generator

Microservices are the new way of building loosely coupled, highly scalable and distributed applications. There are multiple ways of developing microservices like REST, GRPC, Thrift, and many more. However, REST is the most popular choice because of the maturity of the model, availability of tools and developer pool. In this article, I am going to explain how to accelerate your API development by using OpenAPI Generator. OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3). If used consistently, we can save a lot of development effort for creating APIs conforming to OpenAPI Spec. Here I am using  OpenAPI Gradle plugin and Kaizen OpenApi editor for Eclipse to generate server-side (available here ) and client-side code (available here) for a SpringBoot-based application.

Project Set Up

  1. Add the Kaizen OpenApi Editor Eclipse plugin using the Eclipse marketplace. This will help us to automatically generate the OpenApi YAML configuration file.



    from DZone.com Feed http://bit.ly/2B9Cs5i

No comments:

Post a Comment