End to End Restful Api Development Using Openapi Specification

October 23, 2019

Learn how OpenAPI Specification (formerly known as swagger), a language-agnostic interface to write RESTful APIs which allows both humans and computers to understand the service capabilities.

With the increasing number of adoption towards service-oriented architecture and for better integrations with external systems, it became a necessity to write Restful APIs for our services. While building so we might often find several challenges such as, * Standard & Consistent API design * Better documentation * Client Libraries * Playground (better developer experience)

So while writing APIs, we have to make sure it sticks to a standard design principle, update documentation (hosted elsewhere) and finally write client libraries (harder if you have to support multiple languages). Doing all of this manually is a painful job. Likely we have OpenAPI Specification (formerly known as swagger), which offers us a standard, language-agnostic interface to write RESTful APIs which allows both humans and computers to understand the service capabilities.

In short, you can define the APIs in a JSON or YAML file, which can be easily converted to code or documentation. In this article, we will be looking at how we can work with OpenAPI specification, generate code and use it in the server & client-side.

Project link: https://medium.com/swlh/end-to-end-restful-api-development-using-openapi-specification-c73d45e98c8d

Copyright ©2019 rameshl.com 😀