From 77a932edb8de74208d35e5beed5a3ac0e3925643 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Thu, 29 Nov 2018 04:04:44 +0800 Subject: [PATCH] Fixed typo in health endpoint api docs. --- bridge/api/api.go | 2 +- docs/docs.go | 4 ++-- docs/swagger/swagger.json | 2 +- docs/swagger/swagger.yaml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bridge/api/api.go b/bridge/api/api.go index 144c982a..29c50ad1 100644 --- a/bridge/api/api.go +++ b/bridge/api/api.go @@ -112,7 +112,7 @@ func (b *API) Send(msg config.Message) (string, error) { // @Summary Checks if the server is alive. // @Description OK // @Success 200 {string} string -// @Router /api/health [get] +// @Router /health [get] func (b *API) handleHealthcheck(c echo.Context) error { return c.String(http.StatusOK, "OK") } diff --git a/docs/docs.go b/docs/docs.go index ceb48379..e9553da0 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1,6 +1,6 @@ // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // This file was generated by swaggo/swag at -// 2018-11-08 08:07:23.413198 +0800 CST m=+0.090593234 +// 2018-11-29 03:59:40.172197 +0800 CST m=+0.084842487 package docs @@ -21,7 +21,7 @@ var doc = `{ }, "basePath": "/api", "paths": { - "/api/health": { + "/health": { "get": { "description": "OK", "summary": "Checks if the server is alive.", diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index 2bf12b08..6668e113 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -11,7 +11,7 @@ }, "basePath": "/api", "paths": { - "/api/health": { + "/health": { "get": { "description": "OK", "summary": "Checks if the server is alive.", diff --git a/docs/swagger/swagger.yaml b/docs/swagger/swagger.yaml index 8c79159f..47fbb3bb 100644 --- a/docs/swagger/swagger.yaml +++ b/docs/swagger/swagger.yaml @@ -71,7 +71,7 @@ info: url: https://github.com/42wim/matterbridge/blob/master/LICENSE title: Matterbridge API paths: - /api/health: + /health: get: description: OK responses: