Sample API person API
Person sample REST API
go install person/...
go test -coverprofile cover.out
go tool cover -html=cover.out -o cover.html
<your workspace>\src\person>go run person.go -config=config/person-config-local.ini
swagger -apiPackage="Authentication API" -mainApiFile="person/main.go"
List of supported resources, use with base url
- v1/person/ping : ping : GET
To check the service is up and running.
Request
http://localhost:9090/v1/person/ping
Http Method : GET
Success :
Status Code: 200 OK
Failure :
No Response : Service Not Available
Status Code : 50x Service Not Available / Internal Error