wip: swagger p3
This commit is contained in:
@@ -4,14 +4,20 @@ import fr.titionfire.ffsaf.data.model.MembreModel;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.eclipse.microprofile.openapi.annotations.media.Schema;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@RegisterForReflection
|
||||
@Schema(name = "BureauMembre")
|
||||
public class DeskMember {
|
||||
@Schema(description = "Identifiant du membre", example = "1")
|
||||
private Long id;
|
||||
@Schema(description = "Nom du membre", example = "Doe")
|
||||
private String lname;
|
||||
@Schema(description = "Prénom du membre", example = "John")
|
||||
private String fname;
|
||||
@Schema(description = "Rôle du membre", example = "Président")
|
||||
private String role;
|
||||
|
||||
public static DeskMember fromModel(MembreModel membreModel) {
|
||||
|
||||
Reference in New Issue
Block a user