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

View File

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