generated from 2martens/template-service
Added bodies and body request and corresponding objects
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package de.twomartens.oparlservice.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
|
||||
@ -23,20 +24,22 @@ public class System {
|
||||
private final String type;
|
||||
|
||||
@NonNull
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
@Schema(required = true, description = "Date and time of the creation of the object")
|
||||
private final ZonedDateTime created;
|
||||
|
||||
@NonNull
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
@Schema(required = true, description = "Date and time of the last update of the object")
|
||||
private final ZonedDateTime modified;
|
||||
|
||||
@Schema(description = "URL to the license")
|
||||
@Schema(description = "URL to the license", nullable = true)
|
||||
private String license;
|
||||
|
||||
@Schema(description = "Categorization of the object")
|
||||
@Schema(description = "Categorization of the object", nullable = true)
|
||||
private String keyword;
|
||||
|
||||
@Schema(description = "URL of a website that presents the object in the browser")
|
||||
@Schema(description = "URL of a website that presents the object in the browser", nullable = true)
|
||||
private String web;
|
||||
|
||||
@Schema(description = "True, if the object was deleted")
|
||||
@ -47,28 +50,28 @@ public class System {
|
||||
@Schema(required = true, description = "URL to the OParl specification supported by this service")
|
||||
private final String oparlVersion;
|
||||
|
||||
@Schema(description = "Contains a list of URLs to System objects supporting another Oparl version")
|
||||
@Schema(description = "Contains a list of URLs to System objects supporting another Oparl version", nullable = true)
|
||||
private final List<String> otherOparlVersions;
|
||||
|
||||
@NonNull
|
||||
@Schema(required = true, description = "URL to the list of all bodies existing in this system")
|
||||
private final String body;
|
||||
|
||||
@Schema(description = "User friendly name for this system")
|
||||
@Schema(description = "User friendly name for this system", nullable = true)
|
||||
private final String name;
|
||||
|
||||
@Schema(description = "E-Mail-Address for requests related to the OParl-API")
|
||||
@Schema(description = "E-Mail-Address for requests related to the OParl-API", nullable = true)
|
||||
private final String contactEmail;
|
||||
|
||||
@Schema(description = "Name of the contact person who can be reached by contactEmail")
|
||||
@Schema(description = "Name of the contact person who can be reached by contactEmail", nullable = true)
|
||||
private final String contactName;
|
||||
|
||||
@Schema(description = "URL of the website of the parliamentary information system")
|
||||
@Schema(description = "URL of the website of the parliamentary information system", nullable = true)
|
||||
private final String website;
|
||||
|
||||
@Schema(description = "URL to the website of the software creator of the OParl server software")
|
||||
@Schema(description = "URL to the website of the software creator of the OParl server software", nullable = true)
|
||||
private final String vendor;
|
||||
|
||||
@Schema(description = "URL to information about the OParl server software utilized by this system")
|
||||
@Schema(description = "URL to information about the OParl server software utilized by this system", nullable = true)
|
||||
private final String product;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user