Skip to content

Commit

Permalink
websites parameter created #37
Browse files Browse the repository at this point in the history
  • Loading branch information
ahakanzn committed Sep 4, 2024
1 parent 82bdf49 commit e78cfa1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<swagger-annotations.version>2.2.0</swagger-annotations.version>
<super-csv.version>2.4.0</super-csv.version>

<gbif-api.version>1.16.6</gbif-api.version>
<gbif-api.version>1.16.10</gbif-api.version>
<gbif-common-ws.version>1.27</gbif-common-ws.version>

<spring-cloud-openfeign.version>2.2.6.RELEASE</spring-cloud-openfeign.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ public LiteratureResource(LiteratureSearchService searchService) {
array = @ArraySchema(schema = @Schema(implementation = LiteratureTopic.class)),
in = ParameterIn.QUERY,
explode = Explode.TRUE),
@Parameter(
name = "websites",
description = "Website of publication" + REPEATED,
array = @ArraySchema(schema = @Schema(implementation = String.class)),
in = ParameterIn.QUERY,
explode = Explode.TRUE),
@Parameter(
name = "year",
description =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public class LiteratureEsFieldMapper implements EsFieldMapper<LiteratureSearchPa
.put(LiteratureSearchParameter.LITERATURE_TYPE, "literatureType")
.put(LiteratureSearchParameter.RELEVANCE, "relevance")
.put(LiteratureSearchParameter.YEAR, "year")
.put(LiteratureSearchParameter.WEBSITES, "websites")
.put(LiteratureSearchParameter.TOPICS, "topics")
.put(LiteratureSearchParameter.GBIF_DATASET_KEY, "gbifDatasetKey")
.put(LiteratureSearchParameter.PUBLISHING_ORGANIZATION_KEY, "publishingOrganizationKey")
Expand Down

0 comments on commit e78cfa1

Please sign in to comment.