ArticleRequest

data class ArticleRequest(    val id: Int? = null,     val title: String? = null,     val description: String? = null,     val content: String? = null,     val titleRu: String? = null,     val descriptionRu: String? = null,     val contentRu: String? = null,     val category: ArticleCategory? = null,     val type: ArticleType? = null,     val url: String? = null,     val listImage: String? = null,     val viewImage: String? = null,     val isPublished: Boolean? = null,     val uploads: List<Int> = listOf())

Route request article

Constructors

Link copied to clipboard
fun ArticleRequest(    id: Int? = null,     title: String? = null,     description: String? = null,     content: String? = null,     titleRu: String? = null,     descriptionRu: String? = null,     contentRu: String? = null,     category: ArticleCategory? = null,     type: ArticleType? = null,     url: String? = null,     listImage: String? = null,     viewImage: String? = null,     isPublished: Boolean? = null,     uploads: List<Int> = listOf())

Properties

Link copied to clipboard
@NotNull(message = "Select category required")
val category: ArticleCategory? = null
Link copied to clipboard
@Size(max = 50000, message = "Must be less than or equal to 50000")
val content: String? = null
Link copied to clipboard
@Size(max = 50000, message = "Must be less than or equal to 50000")
val contentRu: String? = null
Link copied to clipboard
@Size(min = 3, max = 500, message = "Size must be between 3 and 500")
val description: String? = null
Link copied to clipboard
@NotBlank(message = "Must not be blank")
@Size(max = 500, message = "Size must be between 3 and 500")
val descriptionRu: String? = null
Link copied to clipboard
val id: Int? = null
Link copied to clipboard
@NotNull(message = "Must not be null")
val isPublished: Boolean? = null
Link copied to clipboard
@URL(message = "Must be a valid URL")
val listImage: String? = null
Link copied to clipboard
@Size(min = 3, max = 255, message = "Size must be between 3 and 255")
val title: String? = null
Link copied to clipboard
@NotBlank(message = "Must not be blank")
@Size(max = 255, message = "Size must be between 3 and 255")
val titleRu: String? = null
Link copied to clipboard
@NotNull(message = "Select type required")
val type: ArticleType? = null
Link copied to clipboard
val uploads: List<Int>
Link copied to clipboard
@URL(message = "Must be a valid URL")
val url: String? = null
Link copied to clipboard
@URL(message = "Must be a valid URL")
val viewImage: String? = null