CI: add missing statement, update api docs generated with swag

This commit is contained in:
Sonja Happ 2021-08-11 16:58:49 +02:00
parent 770957c066
commit 8db8417d99
4 changed files with 36 additions and 130 deletions

View file

@ -25,6 +25,7 @@ build:
extends: .go extends: .go
script: script:
- go mod tidy - go mod tidy
- go get github.com/swaggo/swag/cmd/swag@v1.7.0
- go install github.com/swaggo/swag/cmd/swag - go install github.com/swaggo/swag/cmd/swag
- ${GOPATH}/bin/swag init --propertyStrategy pascalcase - ${GOPATH}/bin/swag init --propertyStrategy pascalcase
--generalInfo "start.go" --generalInfo "start.go"

View file

@ -3415,58 +3415,16 @@ var doc = `{
"config.Config": { "config.Config": {
"type": "object", "type": "object",
"properties": { "properties": {
"authentication": { "Providers": {
"$ref": "#/definitions/config.ConfigAuthentication" "type": "array",
}, "items": {
"contact": { "$ref": "#/definitions/config.Provider"
"$ref": "#/definitions/config.ConfigContact" }
},
"mode": {
"type": "string"
},
"sub_title": {
"type": "string"
},
"title": {
"type": "string"
} }
} }
}, },
"config.ConfigAuthentication": { "config.Provider": {
"type": "object", "type": "object"
"properties": {
"external": {
"$ref": "#/definitions/config.ConfigAuthenticationExternal"
},
"logout_url": {
"type": "string"
}
}
},
"config.ConfigAuthenticationExternal": {
"type": "object",
"properties": {
"authorize_url": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"provider_name": {
"type": "string"
}
}
},
"config.ConfigContact": {
"type": "object",
"properties": {
"mail": {
"type": "string"
},
"name": {
"type": "string"
}
}
}, },
"dashboard.addDashboardRequest": { "dashboard.addDashboardRequest": {
"type": "object", "type": "object",
@ -3551,6 +3509,9 @@ var doc = `{
"Category": { "Category": {
"type": "string" "type": "string"
}, },
"CreateParameterSchema": {
"$ref": "#/definitions/postgres.Jsonb"
},
"Description": { "Description": {
"type": "string" "type": "string"
}, },
@ -3598,6 +3559,9 @@ var doc = `{
"Category": { "Category": {
"type": "string" "type": "string"
}, },
"CreateParameterSchema": {
"$ref": "#/definitions/postgres.Jsonb"
},
"Description": { "Description": {
"type": "string" "type": "string"
}, },

View file

@ -3399,58 +3399,16 @@
"config.Config": { "config.Config": {
"type": "object", "type": "object",
"properties": { "properties": {
"authentication": { "Providers": {
"$ref": "#/definitions/config.ConfigAuthentication" "type": "array",
}, "items": {
"contact": { "$ref": "#/definitions/config.Provider"
"$ref": "#/definitions/config.ConfigContact" }
},
"mode": {
"type": "string"
},
"sub_title": {
"type": "string"
},
"title": {
"type": "string"
} }
} }
}, },
"config.ConfigAuthentication": { "config.Provider": {
"type": "object", "type": "object"
"properties": {
"external": {
"$ref": "#/definitions/config.ConfigAuthenticationExternal"
},
"logout_url": {
"type": "string"
}
}
},
"config.ConfigAuthenticationExternal": {
"type": "object",
"properties": {
"authorize_url": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"provider_name": {
"type": "string"
}
}
},
"config.ConfigContact": {
"type": "object",
"properties": {
"mail": {
"type": "string"
},
"name": {
"type": "string"
}
}
}, },
"dashboard.addDashboardRequest": { "dashboard.addDashboardRequest": {
"type": "object", "type": "object",
@ -3535,6 +3493,9 @@
"Category": { "Category": {
"type": "string" "type": "string"
}, },
"CreateParameterSchema": {
"$ref": "#/definitions/postgres.Jsonb"
},
"Description": { "Description": {
"type": "string" "type": "string"
}, },
@ -3582,6 +3543,9 @@
"Category": { "Category": {
"type": "string" "type": "string"
}, },
"CreateParameterSchema": {
"$ref": "#/definitions/postgres.Jsonb"
},
"Description": { "Description": {
"type": "string" "type": "string"
}, },

View file

@ -85,39 +85,12 @@ definitions:
type: object type: object
config.Config: config.Config:
properties: properties:
authentication: Providers:
$ref: '#/definitions/config.ConfigAuthentication' items:
contact: $ref: '#/definitions/config.Provider'
$ref: '#/definitions/config.ConfigContact' type: array
mode:
type: string
sub_title:
type: string
title:
type: string
type: object type: object
config.ConfigAuthentication: config.Provider:
properties:
external:
$ref: '#/definitions/config.ConfigAuthenticationExternal'
logout_url:
type: string
type: object
config.ConfigAuthenticationExternal:
properties:
authorize_url:
type: string
enabled:
type: boolean
provider_name:
type: string
type: object
config.ConfigContact:
properties:
mail:
type: string
name:
type: string
type: object type: object
dashboard.addDashboardRequest: dashboard.addDashboardRequest:
properties: properties:
@ -169,6 +142,8 @@ definitions:
type: string type: string
Category: Category:
type: string type: string
CreateParameterSchema:
$ref: '#/definitions/postgres.Jsonb'
Description: Description:
type: string type: string
Location: Location:
@ -205,6 +180,8 @@ definitions:
type: string type: string
Category: Category:
type: string type: string
CreateParameterSchema:
$ref: '#/definitions/postgres.Jsonb'
Description: Description:
type: string type: string
Location: Location: