Building APIs the Design-First Way with Go

By Thirukkumaran Natarajan

Elevator Pitch

Discover how Go empowered us to build an API-driven file transfer solution:

a) API design-first approach with Go modules for seamless design and implementation. b) Build with efficiency and scalability in mind and how Go natively supports it. c) Explore the collaborative role of Gin web framework.

Description

We searched for a language that could support API design-first approach, offer efficiency and scalability in implementing API servers and enable a swift learning curve.

Enter Go and the Gin web framework, which perfectly met our needs:

  • Automated code generation from OpenAPI specs
  • Request/Response validation capabilities
  • Seamless middleware integration
  • JWT token handling and Cloud-native services integration
  • Concurrency support
  • Robust unit testing support
  • Support for Continuous Integration and Deployment

Notes

APIs are the first-class citizen in API Pillar, an engineering tribe in GovTech, that provides API platforms and solutions for WOG ( Whole of Government) agencies.

We have developed this file transfer solution as API-driven and Cloud-native.

I have been involved in,

  • Design and development from POC to the Product,
  • Most of the engineering decisions.
  • And Implemented the APIs using Go and Gin web framework along with the team.