Skip to content

Commit

Permalink
Merge pull request #42 from openepcis/tasks/GEN-62_implement_top_leve…
Browse files Browse the repository at this point in the history
…l_resources

GEN-62: implement top level resources
  • Loading branch information
sboeckelmann authored May 23, 2024
2 parents 497ba89 + 265b1fb commit ea44e91
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package io.openepcis.model.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.openepcis.core.model.PaginationSupport;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class TopLevelResourcePageResult extends PaginationSupport {

@JsonProperty("@context")
private List<Object> contextInfo;

@JsonProperty("type")
private String type;

@JsonProperty("member")
private List<String> member = new ArrayList<>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public class ExceptionMessages extends RESTExceptionMessages {
public static final String QUERY_TYPE_MUST = "Query type is required";
public static final String ERROR_WHILE_PROCESSING_QUERY =
"Error while processing ElasticSearch query.";
public static final String ERROR_WHILE_SAVING_EPC = "Error while persisting epc";
public static final String ERROR_WHILE_SAVING_QUERY = "Error while persisting epcis-query";
public static final String NO_QUERY_EXIST_WITH_NAME = "No EPCIS Query exists with the name: ";
public static final String QUERY_NAME_ALREADY_EXIST = "The specified query name already exists.";
Expand Down

0 comments on commit ea44e91

Please sign in to comment.