mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
register healthz endpoint, modify description for swaggo
This commit is contained in:
parent
79ce8bf50a
commit
4f62b52d9f
1 changed files with 5 additions and 4 deletions
9
start.go
9
start.go
|
@ -3,6 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rwth-aachen.de/acs/public/villas/web-backend-go/amqp"
|
"git.rwth-aachen.de/acs/public/villas/web-backend-go/amqp"
|
||||||
|
"git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/healthz"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
@ -23,11 +24,10 @@ import (
|
||||||
|
|
||||||
// @title VILLASweb Backend API
|
// @title VILLASweb Backend API
|
||||||
// @version 2.0
|
// @version 2.0
|
||||||
// @description This is the API of the VILLASweb Backend
|
// @description This is the VILLASweb Backend API v2.0.
|
||||||
// @description WORK IN PROGRESS! PLEASE BE PATIENT!
|
// @description Parts of this API are still in development. Please check https://git.rwth-aachen.de/acs/public/villas/web-backend-go for more information.
|
||||||
|
|
||||||
// @description This documentation is auto-generated based on the API documentation in the code.
|
// @description This documentation is auto-generated based on the API documentation in the code. The tool https://github.com/swaggo/swag is used to auto-generate API docs for gin.
|
||||||
// @description The tool https://github.com/swaggo/swag is used to auto-generate API docs for gin.
|
|
||||||
|
|
||||||
// @contact.name Sonja Happ
|
// @contact.name Sonja Happ
|
||||||
// @contact.email sonja.happ@eonerc.rwth-aachen.de
|
// @contact.email sonja.happ@eonerc.rwth-aachen.de
|
||||||
|
@ -63,6 +63,7 @@ func main() {
|
||||||
file.RegisterFileEndpoints(api.Group("/files"))
|
file.RegisterFileEndpoints(api.Group("/files"))
|
||||||
user.RegisterUserEndpoints(api.Group("/users"))
|
user.RegisterUserEndpoints(api.Group("/users"))
|
||||||
simulator.RegisterSimulatorEndpoints(api.Group("/simulators"))
|
simulator.RegisterSimulatorEndpoints(api.Group("/simulators"))
|
||||||
|
healthz.RegisterHealthzEndpoint(api.Group("/healthz"))
|
||||||
// register simulator action endpoint only if AMQP client is used
|
// register simulator action endpoint only if AMQP client is used
|
||||||
if len(database.AMQP_URL) != 0 {
|
if len(database.AMQP_URL) != 0 {
|
||||||
amqp.RegisterAMQPEndpoint(api.Group("/simulators"))
|
amqp.RegisterAMQPEndpoint(api.Group("/simulators"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue