mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2026-01-07 08:54:49 +01:00
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:
@@ -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.",
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user