diff --git a/docs/spec.json b/docs/spec.json index eaa9582..4253dd3 100644 --- a/docs/spec.json +++ b/docs/spec.json @@ -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", diff --git a/model/application.go b/model/application.go index 339034b..844570d 100644 --- a/model/application.go +++ b/model/application.go @@ -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:"-"` }