Use a skipper for the auth, so tokens aren't needed for swagger docs.
This commit is contained in:
39
docs/docs.go
39
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-05 15:12:37.21158 +0800 CST m=+0.084936216
|
||||
// 2018-11-08 08:07:23.413198 +0800 CST m=+0.090593234
|
||||
|
||||
package docs
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
var doc = `{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"description": "A read/write API for the Matterbridge chat bridge.",
|
||||
"description": "OK",
|
||||
"title": "Matterbridge API",
|
||||
"contact": {},
|
||||
"license": {
|
||||
@@ -21,8 +21,27 @@ var doc = `{
|
||||
},
|
||||
"basePath": "/api",
|
||||
"paths": {
|
||||
"/api/health": {
|
||||
"get": {
|
||||
"description": "OK",
|
||||
"summary": "Checks if the server is alive.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/message": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -55,6 +74,11 @@ var doc = `{
|
||||
},
|
||||
"/messages": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -74,6 +98,11 @@ var doc = `{
|
||||
},
|
||||
"/stream": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
"ApiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"produces": [
|
||||
"application/x-json-stream"
|
||||
],
|
||||
@@ -127,6 +156,10 @@ var doc = `{
|
||||
"type": "string",
|
||||
"example": "slack 1541361213.030700"
|
||||
},
|
||||
"parent_id": {
|
||||
"description": "Unique ID of a parent message, if threaded\n",
|
||||
"type": "string"
|
||||
},
|
||||
"protocol": {
|
||||
"description": "Chat protocol of incoming message\n",
|
||||
"type": "string",
|
||||
@@ -155,7 +188,7 @@ var doc = `{
|
||||
}
|
||||
},
|
||||
"securityDefinitions": {
|
||||
"": {
|
||||
"ApiKeyAuth": {
|
||||
"type": "apiKey",
|
||||
"name": "Authorization",
|
||||
"in": "header"
|
||||
|
||||
Reference in New Issue
Block a user