Add Image property to model.Application

This commit is contained in:
Jannis Mattheis 2018-03-30 19:04:42 +02:00 committed by Jannis Mattheis
parent f9fe4427f0
commit b738115b72
2 changed files with 17 additions and 3 deletions

View File

@ -1053,7 +1053,8 @@
"id",
"token",
"name",
"description"
"description",
"image"
],
"properties": {
"description": {
@ -1070,6 +1071,13 @@
"readOnly": true,
"example": 5
},
"image": {
"description": "The image of the application.",
"type": "string",
"x-go-name": "Image",
"readOnly": true,
"example": "https://example.com/image.jpeg"
},
"name": {
"description": "The application name. This is how the application should be displayed to the user.",
"type": "string",

View File

@ -28,6 +28,12 @@ type Application struct {
//
// required: true
// example: Backup server for the interwebs
Description string `form:"description" query:"description" json:"description"`
Messages []Message `json:"-"`
Description string `form:"description" query:"description" json:"description"`
// The image of the application.
//
// read only: true
// required: true
// example: https://example.com/image.jpeg
Image string `json:"image"`
Messages []Message `json:"-"`
}