added health check endpoint + fixed logging

* set go-gin to release mode
* added health check endpoint
* excluded endpoint from logger

see #63
This commit is contained in:
Bernhard B
2021-01-16 20:12:12 +01:00
parent 0ae4a5b0af
commit f5d3880c49
6 changed files with 78 additions and 4 deletions

View File

@@ -264,6 +264,26 @@ var doc = `{
}
}
},
"/v1/health": {
"get": {
"description": "Internally used by the docker container to perform the health check.",
"produces": [
"application/json"
],
"tags": [
"General"
],
"summary": "API Health Check",
"responses": {
"204": {
"description": "No Content",
"schema": {
"type": "string"
}
}
}
}
},
"/v1/profiles/{number}": {
"put": {
"description": "Set your name and optional an avatar.",

View File

@@ -249,6 +249,26 @@
}
}
},
"/v1/health": {
"get": {
"description": "Internally used by the docker container to perform the health check.",
"produces": [
"application/json"
],
"tags": [
"General"
],
"summary": "API Health Check",
"responses": {
"204": {
"description": "No Content",
"schema": {
"type": "string"
}
}
}
}
},
"/v1/profiles/{number}": {
"put": {
"description": "Set your name and optional an avatar.",

View File

@@ -244,6 +244,19 @@ paths:
summary: Delete a Signal Group.
tags:
- Groups
/v1/health:
get:
description: Internally used by the docker container to perform the health check.
produces:
- application/json
responses:
"204":
description: No Content
schema:
type: string
summary: API Health Check
tags:
- General
/v1/profiles/{number}:
put:
description: Set your name and optional an avatar.