cleaned empty @Schema
This commit is contained in:
parent
15558ff29a
commit
9890f71491
|
@ -5,13 +5,10 @@ import java.util.List;
|
||||||
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||||
|
|
||||||
import eu.dnetlib.enabling.datasources.common.AggregationInfo;
|
import eu.dnetlib.enabling.datasources.common.AggregationInfo;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
|
|
||||||
@Schema
|
|
||||||
@JsonAutoDetect
|
@JsonAutoDetect
|
||||||
public class AggregationHistoryResponse extends Response {
|
public class AggregationHistoryResponse extends Response {
|
||||||
|
|
||||||
@Schema
|
|
||||||
private List<AggregationInfo> aggregationInfo;
|
private List<AggregationInfo> aggregationInfo;
|
||||||
|
|
||||||
public AggregationHistoryResponse(final List<AggregationInfo> aggregationInfo) {
|
public AggregationHistoryResponse(final List<AggregationInfo> aggregationInfo) {
|
||||||
|
|
|
@ -11,58 +11,40 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
@Schema(name = "Api model", description = "provides information about the datasource API")
|
@Schema(name = "Api model", description = "provides information about the datasource API")
|
||||||
public class ApiDetails extends ApiIgnoredProperties {
|
public class ApiDetails extends ApiIgnoredProperties {
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String id = null;
|
private String id = null;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String protocol = null;
|
private String protocol = null;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String datasource = null;
|
private String datasource = null;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String contentdescription = null;
|
private String contentdescription = null;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String eoscDatasourceType = null;
|
private String eoscDatasourceType = null;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String compatibility;
|
private String compatibility;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String compatibilityOverride;
|
private String compatibilityOverride;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Integer lastCollectionTotal;
|
private Integer lastCollectionTotal;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Date lastCollectionDate;
|
private Date lastCollectionDate;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Integer lastAggregationTotal;
|
private Integer lastAggregationTotal;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Date lastAggregationDate;
|
private Date lastAggregationDate;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Integer lastDownloadTotal;
|
private Integer lastDownloadTotal;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Date lastDownloadDate;
|
private Date lastDownloadDate;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String baseurl;
|
private String baseurl;
|
||||||
|
|
||||||
@Schema
|
|
||||||
protected Boolean removable = false;
|
protected Boolean removable = false;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Set<ApiParamDetails> apiParams;
|
private Set<ApiParamDetails> apiParams;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String metadataIdentifierPath = "";
|
private String metadataIdentifierPath = "";
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String typology = null;
|
private String typology = null;
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
|
|
|
@ -6,11 +6,10 @@ import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
@Schema
|
|
||||||
@JsonAutoDetect
|
@JsonAutoDetect
|
||||||
public class ApiDetailsResponse extends Response {
|
public class ApiDetailsResponse extends Response {
|
||||||
|
|
||||||
@Schema
|
|
||||||
private List<ApiDetails> api;
|
private List<ApiDetails> api;
|
||||||
|
|
||||||
public List<ApiDetails> getApi() {
|
public List<ApiDetails> getApi() {
|
||||||
|
|
|
@ -8,7 +8,6 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
/**
|
/**
|
||||||
* Created by claudio on 29/11/2016.
|
* Created by claudio on 29/11/2016.
|
||||||
*/
|
*/
|
||||||
@Schema
|
|
||||||
@JsonAutoDetect
|
@JsonAutoDetect
|
||||||
public class CollectionInfo extends AggregationInfo {
|
public class CollectionInfo extends AggregationInfo {
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,9 @@ package eu.dnetlib.openaire.dsm.domain;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by claudio on 12/09/16.
|
* Created by claudio on 12/09/16.
|
||||||
*/
|
*/
|
||||||
@Schema
|
|
||||||
@JsonAutoDetect
|
@JsonAutoDetect
|
||||||
public enum CollectionMode {
|
public enum CollectionMode {
|
||||||
REFRESH,
|
REFRESH,
|
||||||
|
|
|
@ -4,13 +4,9 @@ import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
|
|
||||||
@Schema
|
|
||||||
@JsonAutoDetect
|
@JsonAutoDetect
|
||||||
public class DatasourceDetailResponse extends Response {
|
public class DatasourceDetailResponse extends Response {
|
||||||
|
|
||||||
@Schema
|
|
||||||
private List<DatasourceDetails> datasourceInfo;
|
private List<DatasourceDetails> datasourceInfo;
|
||||||
|
|
||||||
public DatasourceDetailResponse(final List<DatasourceDetails> datasourceInfo) {
|
public DatasourceDetailResponse(final List<DatasourceDetails> datasourceInfo) {
|
||||||
|
|
|
@ -19,117 +19,82 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
public class DatasourceDetails extends DatasourceIgnoredProperties {
|
public class DatasourceDetails extends DatasourceIgnoredProperties {
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@Schema
|
|
||||||
private String openaireId;
|
private String openaireId;
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String officialname;
|
private String officialname;
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String englishname;
|
private String englishname;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String websiteurl;
|
private String websiteurl;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String logourl;
|
private String logourl;
|
||||||
|
|
||||||
@Email
|
@Email
|
||||||
@Schema
|
|
||||||
private String contactemail;
|
private String contactemail;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Double latitude;
|
private Double latitude;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Double longitude;
|
private Double longitude;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String timezone;
|
private String timezone;
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String namespaceprefix;
|
private String namespaceprefix;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String languages;
|
private String languages;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Date dateofvalidation;
|
private Date dateofvalidation;
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String eoscDatasourceType;
|
private String eoscDatasourceType;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Date dateofcollection;
|
private Date dateofcollection;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String platform;
|
private String platform;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String activationId;
|
private String activationId;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String issn;
|
private String issn;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String eissn;
|
private String eissn;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String lissn;
|
private String lissn;
|
||||||
|
|
||||||
@Email
|
@Email
|
||||||
@Schema
|
|
||||||
private String registeredby;
|
private String registeredby;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String subjects;
|
private String subjects;
|
||||||
|
|
||||||
@Schema
|
|
||||||
protected String aggregator = "OPENAIRE";
|
protected String aggregator = "OPENAIRE";
|
||||||
|
|
||||||
@Schema
|
|
||||||
protected String collectedfrom;
|
protected String collectedfrom;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Boolean managed;
|
private Boolean managed;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Boolean consentTermsOfUse;
|
private Boolean consentTermsOfUse;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Boolean fullTextDownload;
|
private Boolean fullTextDownload;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Date consentTermsOfUseDate;
|
private Date consentTermsOfUseDate;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Date lastConsentTermsOfUseDate;
|
private Date lastConsentTermsOfUseDate;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Set<OrganizationDetails> organizations;
|
private Set<OrganizationDetails> organizations;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Set<IdentitiesDetails> identities;
|
private Set<IdentitiesDetails> identities;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@Schema
|
|
||||||
private String typology;
|
private String typology;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Date registrationdate;
|
private Date registrationdate;
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
|
|
|
@ -18,69 +18,49 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
public class DatasourceDetailsUpdate {
|
public class DatasourceDetailsUpdate {
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String officialname;
|
private String officialname;
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String englishname;
|
private String englishname;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String websiteurl;
|
private String websiteurl;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String logourl;
|
private String logourl;
|
||||||
|
|
||||||
@Email
|
@Email
|
||||||
@Schema
|
|
||||||
private String contactemail;
|
private String contactemail;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Double latitude;
|
private Double latitude;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Double longitude;
|
private Double longitude;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String timezone;
|
private String timezone;
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@Schema
|
|
||||||
private String typology;
|
private String typology;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String eoscDatasourceType;
|
private String eoscDatasourceType;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String platform;
|
private String platform;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
@Email
|
@Email
|
||||||
@Schema
|
|
||||||
private String registeredby;
|
private String registeredby;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Boolean managed;
|
private Boolean managed;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Set<IdentitiesDetails> identities;
|
private Set<IdentitiesDetails> identities;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Boolean consentTermsOfUse;
|
private Boolean consentTermsOfUse;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Date consentTermsOfUseDate;
|
private Date consentTermsOfUseDate;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Date lastConsentTermsOfUseDate;
|
private Date lastConsentTermsOfUseDate;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Boolean fullTextDownload;
|
private Boolean fullTextDownload;
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
|
|
|
@ -14,10 +14,8 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
@Schema(name = "Datasource model with apis", description = "provides information about the datasource and its apis")
|
@Schema(name = "Datasource model with apis", description = "provides information about the datasource and its apis")
|
||||||
public class DatasourceDetailsWithApis {
|
public class DatasourceDetailsWithApis {
|
||||||
|
|
||||||
@Schema
|
|
||||||
private DatasourceDetails datasource;
|
private DatasourceDetails datasource;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private List<ApiDetails> apis = new ArrayList<>();
|
private List<ApiDetails> apis = new ArrayList<>();
|
||||||
|
|
||||||
public DatasourceDetails getDatasource() {
|
public DatasourceDetails getDatasource() {
|
||||||
|
|
|
@ -11,31 +11,22 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
@Schema(name = "Datasource info model", description = "provides information about the datasource and its aggregation status")
|
@Schema(name = "Datasource info model", description = "provides information about the datasource and its aggregation status")
|
||||||
public class DatasourceInfo {
|
public class DatasourceInfo {
|
||||||
|
|
||||||
@Schema
|
|
||||||
private long indexRecords;
|
private long indexRecords;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private long fundedContent;
|
private long fundedContent;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private long fulltexts;
|
private long fulltexts;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String lastIndexingDate;
|
private String lastIndexingDate;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String firstHarvestDate;
|
private String firstHarvestDate;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private DatasourceDetails datasource;
|
private DatasourceDetails datasource;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private AggregationInfo lastCollection;
|
private AggregationInfo lastCollection;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private AggregationInfo lastTransformation;
|
private AggregationInfo lastTransformation;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private List<AggregationInfo> aggregationHistory;
|
private List<AggregationInfo> aggregationHistory;
|
||||||
|
|
||||||
public DatasourceInfo() {
|
public DatasourceInfo() {
|
||||||
|
|
|
@ -5,9 +5,6 @@ import java.util.List;
|
||||||
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
|
|
||||||
@Schema
|
|
||||||
@JsonAutoDetect
|
@JsonAutoDetect
|
||||||
public class DatasourceResponse<T> extends Response {
|
public class DatasourceResponse<T> extends Response {
|
||||||
|
|
||||||
|
|
|
@ -4,13 +4,9 @@ import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
|
|
||||||
@Schema
|
|
||||||
@JsonAutoDetect
|
@JsonAutoDetect
|
||||||
public class DatasourceSearchResponse extends Response {
|
public class DatasourceSearchResponse extends Response {
|
||||||
|
|
||||||
@Schema
|
|
||||||
private List<DatasourceInfo> datasourceInfo;
|
private List<DatasourceInfo> datasourceInfo;
|
||||||
|
|
||||||
public DatasourceSearchResponse(final List<DatasourceInfo> datasourceInfo) {
|
public DatasourceSearchResponse(final List<DatasourceInfo> datasourceInfo) {
|
||||||
|
|
|
@ -11,15 +11,12 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
public class DatasourceSnippet {
|
public class DatasourceSnippet {
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String officialname;
|
private String officialname;
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String englishname;
|
private String englishname;
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
|
|
|
@ -15,53 +15,38 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
public class DatasourceSnippetExtended {
|
public class DatasourceSnippetExtended {
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String officialname;
|
private String officialname;
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String englishname;
|
private String englishname;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String websiteurl;
|
private String websiteurl;
|
||||||
|
|
||||||
@Email
|
@Email
|
||||||
@Schema
|
|
||||||
private String registeredby;
|
private String registeredby;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Date registrationdate;
|
private Date registrationdate;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String eoscDatasourceType;
|
private String eoscDatasourceType;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String logoUrl;
|
private String logoUrl;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Boolean consentTermsOfUse;
|
private Boolean consentTermsOfUse;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Date consentTermsOfUseDate;
|
private Date consentTermsOfUseDate;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Date lastConsentTermsOfUseDate;
|
private Date lastConsentTermsOfUseDate;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Boolean fullTextDownload;
|
private Boolean fullTextDownload;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Set<OrganizationDetails> organizations;
|
private Set<OrganizationDetails> organizations;
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@Schema
|
|
||||||
private String typology;
|
private String typology;
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
|
|
|
@ -4,13 +4,9 @@ import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
|
|
||||||
@Schema
|
|
||||||
@JsonAutoDetect
|
@JsonAutoDetect
|
||||||
public class DatasourceSnippetResponse extends Response {
|
public class DatasourceSnippetResponse extends Response {
|
||||||
|
|
||||||
@Schema
|
|
||||||
private List<DatasourceSnippetExtended> datasourceInfo;
|
private List<DatasourceSnippetExtended> datasourceInfo;
|
||||||
|
|
||||||
public DatasourceSnippetResponse(final List<DatasourceSnippetExtended> datasourceInfo) {
|
public DatasourceSnippetResponse(final List<DatasourceSnippetExtended> datasourceInfo) {
|
||||||
|
|
|
@ -9,28 +9,19 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
|
|
||||||
@Schema
|
|
||||||
@JsonAutoDetect
|
@JsonAutoDetect
|
||||||
public class Header {
|
public class Header {
|
||||||
|
|
||||||
@Schema
|
|
||||||
private long total;
|
private long total;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private int page;
|
private int page;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private int size;
|
private int size;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private long time;
|
private long time;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private int statusCode;
|
private int statusCode;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private List<String> errors = Lists.newArrayList();
|
private List<String> errors = Lists.newArrayList();
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
|
|
|
@ -2,9 +2,6 @@ package eu.dnetlib.openaire.dsm.domain;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
|
|
||||||
@Schema
|
|
||||||
@JsonAutoDetect
|
@JsonAutoDetect
|
||||||
public class IdentitiesDetails {
|
public class IdentitiesDetails {
|
||||||
|
|
||||||
|
|
|
@ -10,21 +10,16 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
@Schema(name = "Organization info model", description = "provides information about the organization")
|
@Schema(name = "Organization info model", description = "provides information about the organization")
|
||||||
public class OrganizationDetails extends OrganizationIgnoredProperties {
|
public class OrganizationDetails extends OrganizationIgnoredProperties {
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String legalshortname;
|
private String legalshortname;
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String legalname;
|
private String legalname;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String websiteurl;
|
private String websiteurl;
|
||||||
|
|
||||||
@Schema
|
|
||||||
private String logourl;
|
private String logourl;
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Schema
|
|
||||||
private String country;
|
private String country;
|
||||||
|
|
||||||
public String getLegalshortname() {
|
public String getLegalshortname() {
|
||||||
|
|
|
@ -8,7 +8,6 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
@Schema(name = "Api response model", description = "Api response model, provides a response header")
|
@Schema(name = "Api response model", description = "Api response model, provides a response header")
|
||||||
public class Response {
|
public class Response {
|
||||||
|
|
||||||
@Schema
|
|
||||||
private Header header;
|
private Header header;
|
||||||
|
|
||||||
public Response() {
|
public Response() {
|
||||||
|
|
|
@ -4,13 +4,9 @@ import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
|
|
||||||
@Schema
|
|
||||||
@JsonAutoDetect
|
@JsonAutoDetect
|
||||||
public class SimpleResponse<T> extends Response {
|
public class SimpleResponse<T> extends Response {
|
||||||
|
|
||||||
@Schema
|
|
||||||
private List<T> response;
|
private List<T> response;
|
||||||
|
|
||||||
public List<T> getResponse() {
|
public List<T> getResponse() {
|
||||||
|
|
|
@ -3,12 +3,10 @@ package eu.dnetlib.openaire.dsm.domain;
|
||||||
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||||
|
|
||||||
import eu.dnetlib.enabling.datasources.common.AggregationInfo;
|
import eu.dnetlib.enabling.datasources.common.AggregationInfo;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by claudio on 29/11/2016.
|
* Created by claudio on 29/11/2016.
|
||||||
*/
|
*/
|
||||||
@Schema
|
|
||||||
@JsonAutoDetect
|
@JsonAutoDetect
|
||||||
public class TransformationInfo extends AggregationInfo {
|
public class TransformationInfo extends AggregationInfo {
|
||||||
|
|
||||||
|
|
|
@ -7,14 +7,12 @@ import javax.persistence.Table;
|
||||||
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||||
|
|
||||||
import eu.dnetlib.enabling.datasources.common.BrowseTerm;
|
import eu.dnetlib.enabling.datasources.common.BrowseTerm;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by claudio on 20/04/2017.
|
* Created by claudio on 20/04/2017.
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "browse_countries")
|
@Table(name = "browse_countries")
|
||||||
@Schema
|
|
||||||
@JsonAutoDetect
|
@JsonAutoDetect
|
||||||
public class CountryTerm implements Comparable<CountryTerm>, BrowseTerm {
|
public class CountryTerm implements Comparable<CountryTerm>, BrowseTerm {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue