Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Commit 7a9381f

Browse files
Merge branch 'plantbreeding:brapi-server-v2' into brapi-server-v2
2 parents ab6ac80 + ea0a03b commit 7a9381f

29 files changed

+888
-722
lines changed

src/main/java/io/swagger/api/pheno/ObservationsApi.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ ResponseEntity<? extends BrAPIResponse> searchObservationsPost(
168168
@RequestMapping(value = "/search/observations/{searchResultsDbId}", produces = {
169169
"application/json" }, method = RequestMethod.GET)
170170
ResponseEntity<? extends BrAPIResponse> searchObservationsSearchResultsDbIdGet(
171-
@ApiParam(value = "The requested content type which should be returned by the server", required = true) @RequestHeader(value = "Accept", required = true) WSMIMEDataTypes accept,
172171
@ApiParam(value = "Permanent unique identifier which references the search results", required = true) @PathVariable("searchResultsDbId") String searchResultsDbId,
173172
@ApiParam(value = "HTTP HEADER - Token used for Authorization <strong> Bearer {token_string} </strong>") @RequestHeader(value = "Authorization", required = false) String authorization,
174173
@ApiParam(value = "Used to request a specific page of data to be returned. The page indexing starts at 0 (the first page is 'page'= 0). Default is `0`.") @Valid @RequestParam(value = "page", required = false) Integer page,
Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,39 @@
11
package io.swagger.model;
22

33
import com.fasterxml.jackson.annotation.JsonCreator;
4+
import com.fasterxml.jackson.annotation.JsonProperty;
45
import com.fasterxml.jackson.annotation.JsonValue;
56

6-
7-
87
/**
98
* Gets or Sets WSMIMEDataTypes
109
*/
1110
public enum WSMIMEDataTypes {
12-
APPLICATION_JSON("application/json"),
13-
TEXT_CSV("text/csv"),
14-
TEXT_TSV("text/tsv"),
15-
APPLICATION_FLAPJACK("application/flapjack"),
16-
APPLICATION_EXCEL("application/excel"),
17-
APPLICATION_ZIP("application/zip");
18-
19-
private String value;
20-
21-
WSMIMEDataTypes(String value) {
22-
this.value = value;
23-
}
24-
25-
@Override
26-
@JsonValue
27-
public String toString() {
28-
return String.valueOf(value);
29-
}
30-
31-
@JsonCreator
32-
public static WSMIMEDataTypes fromValue(String text) {
33-
for (WSMIMEDataTypes b : WSMIMEDataTypes.values()) {
34-
if (String.valueOf(b.value).equals(text)) {
35-
return b;
36-
}
37-
}
38-
return null;
39-
}
11+
APPLICATION_JSON("application/json"),
12+
TEXT_CSV("text/csv"),
13+
TEXT_TSV("text/tsv"),
14+
APPLICATION_FLAPJACK("application/flapjack"),
15+
APPLICATION_EXCEL("application/excel"),
16+
APPLICATION_ZIP("application/zip");
17+
18+
private String value;
19+
20+
WSMIMEDataTypes(String value) {
21+
this.value = value;
22+
}
23+
24+
@Override
25+
@JsonValue
26+
public String toString() {
27+
return String.valueOf(value);
28+
}
29+
30+
@JsonCreator
31+
public static WSMIMEDataTypes fromValue(@JsonProperty("dataType") String text) {
32+
for (WSMIMEDataTypes b : WSMIMEDataTypes.values()) {
33+
if (String.valueOf(b.value).equals(text)) {
34+
return b;
35+
}
36+
}
37+
return null;
38+
}
4039
}

0 commit comments

Comments
 (0)