Created
March 13, 2022 19:46
-
-
Save susimsek/623d632efdc78828bd10a8b310b919c2 to your computer and use it in GitHub Desktop.
Spring boot Hateoas RepresentationModel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Schema(name="Capability", description = "Capability") | |
@FieldDefaults(level = AccessLevel.PRIVATE) | |
@Getter | |
@Setter | |
@ToString | |
@NoArgsConstructor | |
@AllArgsConstructor | |
@EqualsAndHashCode(callSuper = false) | |
@Relation(collectionRelation = "capabilities") | |
@Builder | |
public class CapabilityDto extends RepresentationModel<CapabilityDto> { | |
@Schema(description = "Unique identifier of the Capability.", example = "1", required = true) | |
Long id; | |
@Schema(description = "Name of the Technology Stack.", example = "JavaEE", required = true) | |
String techStack; | |
@Schema(description = "Num of the Developers.", example = "20", required = true) | |
Integer numOfDevelopers; | |
@Schema(description = "Num of the Available Developers.", example = "10", required = true) | |
Integer numOfAvailableDevelopers; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment