add swagger

This commit is contained in:
aichy 2022-12-07 17:29:22 +08:00
parent 0e25fa8aa0
commit 9e014e1781
4 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@ -9,6 +9,7 @@
/.fleet
/.vscode/*.log
/cmd/answer/*.sh
/cmd/answer/answer
/cmd/answer/uploads/*
/cmd/logs
/configs/config-dev.yaml

View File

@ -5724,6 +5724,10 @@ const docTemplate = `{
"description": "created time",
"type": "integer"
},
"description": {
"description": "description text",
"type": "string"
},
"display_name": {
"description": "display name",
"type": "string"

View File

@ -5712,6 +5712,10 @@
"description": "created time",
"type": "integer"
},
"description": {
"description": "description text",
"type": "string"
},
"display_name": {
"description": "display name",
"type": "string"

View File

@ -650,6 +650,9 @@ definitions:
created_at:
description: created time
type: integer
description:
description: description text
type: string
display_name:
description: display name
type: string