Categorygithub.com/anupx73/go-bpcalc-backend-k8s

# README

BP Calc Microservice

Overview

This project demonstrates the use of microservice and its deployment to kubernetes.
This backend service is powered by Go which provides some endpoints and interacts with MongoDB.

  • BP Calc Service: Provides blood pressure category calculation based on inputs.

The Go project template is sourced from: mmorejon

Go Module Publish

To publish this module to be used by the frontend service use the followings:

go mod tidy

git tag v0.1.0
git push origin v0.1.0

GOPROXY=proxy.golang.org go list -m github.com/anupx73/[email protected]

Endpoints

ServiceMethodEndpoint
List BP ReadingsGET/api/bpcalc/
Get BP Readings by IdGET/api/bpcalc/{id}
Insert BP ReadingPOST/api/bpcalc/
Delete BP ReadingDELETE/api/bpcalc/{id}

POST

curl  -X POST http://localhost/api/bpcalc/ \
      -H "Content-Type: application/json" \
      -d '{"name":"Steven A","email":"[email protected]","systolic":120,"diastolic":80}'

# Packages

No description provided by the author
No description provided by the author