-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding IUCN RedList category to the species match cache (#19)
* Adding the IUCN RedList Category to the name match cache gbif/pipelines#257 * Checking possible null values in the NameUsageMatch response and in WS responses
- Loading branch information
Showing
6 changed files
with
110 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 13 additions & 3 deletions
16
...es/retrofit/NameMatchRetrofitService.java → ...etrofit/ChecklistbankRetrofitService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
package org.gbif.rest.client.species.retrofit; | ||
|
||
import org.gbif.rest.client.species.ChecklistbankService; | ||
import org.gbif.rest.client.species.NameUsageMatch; | ||
|
||
import java.util.Map; | ||
|
||
import retrofit2.Call; | ||
import retrofit2.http.GET; | ||
import retrofit2.http.Path; | ||
import retrofit2.http.Query; | ||
|
||
/** | ||
* see {@link org.gbif.rest.client.species.NameMatchService} | ||
* see {@link ChecklistbankService} | ||
*/ | ||
public interface NameMatchRetrofitService { | ||
public interface ChecklistbankRetrofitService { | ||
|
||
/** | ||
* See {@link org.gbif.rest.client.species.NameMatchService#match(String, String, String, String, String, String, String, String, boolean, boolean)} | ||
* See {@link ChecklistbankService#match(String, String, String, String, String, String, String, String, boolean, boolean)} | ||
*/ | ||
@GET("/v1/species/match2") | ||
Call<NameUsageMatch> match(@Query("kingdom") String kingdom, @Query("phylum") String phylum, | ||
@Query("class") String clazz, @Query("order") String order, @Query("family") String family, | ||
@Query("genus") String genus, @Query("rank") String rank, @Query("name") String name, | ||
@Query("verbose") boolean verbose, @Query("strict") boolean strict); | ||
|
||
/** | ||
* See {@link org.gbif.rest.client.species.ChecklistbankService#getIucnRedListCategory(Integer)} | ||
*/ | ||
@GET("/v1/species/{nubKey}/iucnRedListCategory") | ||
Call<Map<String,String>> getIucnRedListCategory(@Path("nubKey") Integer nubKey); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters