Discover Packages
github.com/sagarmaheshwary/microservices-api-gateway
module
Version:
v0.0.0-...-34a8830
Opens a new window with list of versions in this module.
Published: Jun 9, 2025
License: MIT
Opens a new window with license information.
README
README
¶
MICROSERVICES - API GATEWAY
API Gateway for the Microservices project.
OVERVIEW
Golang
ZeroLog
Gin framework - REST API
gRPC – Client implementations for Authentication, Upload, and Video Catalog services
Prometheus Client – Exports default and custom metrics for Prometheus server monitoring
SETUP
Follow the instructions in the README of the main microservices repository to run this service along with others using Docker Compose.
APIs
Check out the Postman collection and environment files in the api/postman directory for example requests.
API
METHOD
BODY
Headers
Description
/auth/register
POST
{"name": "string", "email": "string", "password", "string"}
-
User registration - authentication service
/auth/login
POST
{ "email": "string", "password", "string"}
-
User login - authentication service
/auth/logout
POST
-
Bearer token in "authorization" header
User logout - authentication service
/auth/profile
GET
-
Bearer token in "authorization" header
Get currently logged in user - authentication service
/videos
GET
-
-
List videos - video catalog service
/videos/:id
GET
-
-
Get specified video details as well as DASH manifest url from cloudfront for streaming that video - video catalog service
/videos/upload/presigned-url
POST
-
Bearer token in "authorization" header
Get S3 presigned url for uploading a video from frontend/postman - upload service
/videos/upload/webhook
POST
{"video_id": "string - s3 upload id from presigned-url process", "thumbnail_id": "string - s3 upload id from presigned-url process", "title": "string - video title", "description": "string - video description"}
Bearer token in "authorization" header
Create a video - upload service
/health
GET
-
-
Service healthcheck endpoint
/metrics
GET
-
-
Prometheus metrics endpoint
Expand ▾
Collapse ▴
Directories
¶
cmd
internal
Click to show internal directories.
Click to hide internal directories.