feat(gateway): added first implement of the Gateway (MQTT, Influx, REST)
Signed-off-by: Klagarge <remi@heredero.ch>
This commit is contained in:
41
gateway/src/docs/docs.go
Normal file
41
gateway/src/docs/docs.go
Normal file
@@ -0,0 +1,41 @@
|
||||
// Package docs Code generated by swaggo/swag. DO NOT EDIT
|
||||
package docs
|
||||
|
||||
import "github.com/swaggo/swag"
|
||||
|
||||
const docTemplate = `{
|
||||
"schemes": {{ marshal .Schemes }},
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"description": "{{escape .Description}}",
|
||||
"title": "{{.Title}}",
|
||||
"contact": {},
|
||||
"version": "{{.Version}}"
|
||||
},
|
||||
"host": "{{.Host}}",
|
||||
"basePath": "{{.BasePath}}",
|
||||
"paths": {},
|
||||
"securityDefinitions": {
|
||||
"BasicAuth": {
|
||||
"type": "basic"
|
||||
}
|
||||
}
|
||||
}`
|
||||
|
||||
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
||||
var SwaggerInfo = &swag.Spec{
|
||||
Version: "1.0",
|
||||
Host: "rest.mse.kb28.ch",
|
||||
BasePath: "/",
|
||||
Schemes: []string{},
|
||||
Title: "Swagger SoftwEng API",
|
||||
Description: "REST API for the SoftwEng course in MSE",
|
||||
InfoInstanceName: "swagger",
|
||||
SwaggerTemplate: docTemplate,
|
||||
LeftDelim: "{{",
|
||||
RightDelim: "}}",
|
||||
}
|
||||
|
||||
func init() {
|
||||
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
|
||||
}
|
||||
17
gateway/src/docs/swagger.json
Normal file
17
gateway/src/docs/swagger.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"description": "REST API for the SoftwEng course in MSE",
|
||||
"title": "Swagger SoftwEng API",
|
||||
"contact": {},
|
||||
"version": "1.0"
|
||||
},
|
||||
"host": "rest.mse.kb28.ch",
|
||||
"basePath": "/",
|
||||
"paths": {},
|
||||
"securityDefinitions": {
|
||||
"BasicAuth": {
|
||||
"type": "basic"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
gateway/src/docs/swagger.yaml
Normal file
12
gateway/src/docs/swagger.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
basePath: /
|
||||
host: rest.mse.kb28.ch
|
||||
info:
|
||||
contact: {}
|
||||
description: REST API for the SoftwEng course in MSE
|
||||
title: Swagger SoftwEng API
|
||||
version: "1.0"
|
||||
paths: {}
|
||||
securityDefinitions:
|
||||
BasicAuth:
|
||||
type: basic
|
||||
swagger: "2.0"
|
||||
Reference in New Issue
Block a user