Categorygithub.com/sagarmaheshwary/microservices-api-gateway
module
0.0.0-20250102174132-db2e989a7162
Repository: https://github.com/sagarmaheshwary/microservices-api-gateway.git
Documentation: pkg.go.dev

# README

MICROSERVICES - API GATEWAY

API Gateway for Microservices project.

TECHNOLOGIES

  • Golang (1.22)
  • Gin framework
  • gRPC

SETUP

After cloning the project, cd into the project directory and copy .env.example to .env and update the required variables.

Create executable and start the server:

go build cmd/server/main.go && ./main

Or install "air" and run it to autoreload when making file changes:

air -c .air-toml

APIs

Checkout Postman collection and environment files for examples in api/postman directory.

APIMETHODBODYHeadersDescription
/auth/registerPOST{"name": "string", "email": "string", "password", "string"}-User registration via authentication service RPC
/auth/loginPOST{ "email": "string", "password", "string"}-User login via authentication service RPC
/auth/logoutPOST-Bearer token in "authorization" headerUser logout via authentication service RPC

# Packages

No description provided by the author