User facing API #

wtf-go

v0.1.0

#GET /misc/version

Return the version

Miscellaneous

Responses

gostringrequired
Version of the Go toolchain that built the binary
platformstringrequired
modifiedbooleanrequired
True or false indicating whether the source tree had local modifications
revisionstring
The revision identifier for the current commit or checkout.
timestring
The modification time associated with revision, in RFC3339 format
Request
curl -X GET "http://localhost:8081/api/v0/misc/version" \  -H "Content-Type: application/json"
Response
{
  "go": "go1.20.3",
  "modified": true,
  "platform": "linux/amd64",
  "revision": "d4e5f6a",
  "time": "2024-10-06T09:25:27Z"
}

#GET /misc/health

Return the health status of the API

Miscellaneous

Responses

statusstringrequired
503 The API is currently unavailable
Request
curl -X GET "http://localhost:8081/api/v0/misc/health" \  -H "Content-Type: application/json"
Response
{
  "status": "OK"
}