API Gateway for Microservices project.
- Golang (1.22)
- Gin framework
- gRPC
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
Checkout Postman collection and environment files for examples in api/postman directory.
API | METHOD | BODY | Headers | Description |
---|---|---|---|---|
/auth/register | POST | {"name": "string", "email": "string", "password", "string"} | - | User registration via authentication service RPC |
/auth/login | POST | { "email": "string", "password", "string"} | - | User login via authentication service RPC |
/auth/logout | POST | - | Bearer token in "authorization" header | User logout via authentication service RPC |