A REST based API written in Go using Gorilla Mux Router.
Product-api exposes endpoints for following features-
- Adding a new product
- Getting list of products
- Getting a specific product
- Deleting product
It uses Open API specification for documentation and Swagger for auto-code generation.
Graceful Shutdown- It is a mechanism to shutdown server properly by allowing ongoing requests time to terminate and stop accepting new requests.
Open API spec- The OpenAPI Specification, formerly known as the Swagger Specification, is the world’s standard for defining RESTful interfaces.
The OAS enables developers to design a technology-agnostic API interface that forms the basis of their API development and consumption.