Implementation of the API defined in swagger.yml
./dockerbuild.sh
docker run -p 8080:8080 patients-api:latest
curl -H "Content-Type: application/json" -d '{"email":"jim@gmail.com","first_name":"jim","last_name":"jimmy","birthdate":"2000-01-01T00:00:00Z","sex":" Male"}' -X POST http://localhost:8080/v1/patients
curl -i http:/localhost:8080/v1/patients/0
curl -i http:/localhost:8080/v1/patients
Benchmark post requests with:
go test -bench=. -benchtime=20s