diff --git a/src/main/java/uk/ac/hutton/ics/brapi/client/BrapiCoreService.java b/src/main/java/uk/ac/hutton/ics/brapi/client/BrapiCoreService.java index 4952bac..572c3b8 100644 --- a/src/main/java/uk/ac/hutton/ics/brapi/client/BrapiCoreService.java +++ b/src/main/java/uk/ac/hutton/ics/brapi/client/BrapiCoreService.java @@ -35,7 +35,7 @@ Call>> getLists( Call>> postLists(@Body List newLists); @GET("lists/{listDbId}") - Call>> getListsById( + Call> getListById( @Path("listDbId") String listDbId, @Query("page") int page, @Query("pageSize") int pageSize diff --git a/src/main/java/uk/ac/hutton/ics/brapi/resource/germplasm/germplasm/Mcpd.java b/src/main/java/uk/ac/hutton/ics/brapi/resource/germplasm/germplasm/Mcpd.java index cf1d12a..dfccb39 100644 --- a/src/main/java/uk/ac/hutton/ics/brapi/resource/germplasm/germplasm/Mcpd.java +++ b/src/main/java/uk/ac/hutton/ics/brapi/resource/germplasm/germplasm/Mcpd.java @@ -1,6 +1,5 @@ package uk.ac.hutton.ics.brapi.resource.germplasm.germplasm; -import java.util.Collection; import java.util.*; public class Mcpd diff --git a/src/main/java/uk/ac/hutton/ics/brapi/server/base/TokenBaseServerResource.java b/src/main/java/uk/ac/hutton/ics/brapi/server/base/TokenBaseServerResource.java index be8dd35..683eab8 100644 --- a/src/main/java/uk/ac/hutton/ics/brapi/server/base/TokenBaseServerResource.java +++ b/src/main/java/uk/ac/hutton/ics/brapi/server/base/TokenBaseServerResource.java @@ -7,7 +7,7 @@ import uk.ac.hutton.ics.brapi.resource.base.TokenBaseResult; -public abstract class TokenBaseServerResource extends ServerResource +public abstract class TokenBaseServerResource extends ServerResource { protected static final String PARAM_PAGE_SIZE = "pageSize"; protected static final String PARAM_CURRENT_PAGE = "pageToken"; @@ -16,11 +16,6 @@ public abstract class TokenBaseServerResource extends ServerResource protected int pageSize = Integer.MAX_VALUE; protected int currentPage = 0; - protected static String toString(Object value) - { - return value == null ? null : Objects.toString(value); - } - @Override public void doInit() { @@ -52,15 +47,4 @@ public void doInit() } } } - - @Get("json") - public abstract TokenBaseResult getJson(); - - protected Timestamp getTimestamp(Date date) - { - if (date != null) - return new Timestamp(date.getTime()); - else - return null; - } } diff --git a/src/main/java/uk/ac/hutton/ics/brapi/server/core/list/BrapiListIndividualItemServerResource.java b/src/main/java/uk/ac/hutton/ics/brapi/server/core/list/BrapiListIndividualItemServerResource.java index 91e7965..bf88d08 100644 --- a/src/main/java/uk/ac/hutton/ics/brapi/server/core/list/BrapiListIndividualItemServerResource.java +++ b/src/main/java/uk/ac/hutton/ics/brapi/server/core/list/BrapiListIndividualItemServerResource.java @@ -8,5 +8,5 @@ public interface BrapiListIndividualItemServerResource { @Post - BaseResult postJson(String[] ids); + BaseResult postListItems(String[] ids); } diff --git a/src/main/java/uk/ac/hutton/ics/brapi/server/core/list/BrapiListIndividualServerResource.java b/src/main/java/uk/ac/hutton/ics/brapi/server/core/list/BrapiListIndividualServerResource.java index 3ef9abe..2c7e569 100644 --- a/src/main/java/uk/ac/hutton/ics/brapi/server/core/list/BrapiListIndividualServerResource.java +++ b/src/main/java/uk/ac/hutton/ics/brapi/server/core/list/BrapiListIndividualServerResource.java @@ -8,7 +8,7 @@ public interface BrapiListIndividualServerResource { @Get - BaseResult> getListsById(); + BaseResult getListsById(); @Put BaseResult putListById(Lists updatedLists); diff --git a/src/main/java/uk/ac/hutton/ics/brapi/server/core/season/BrapiSeasonServerResource.java b/src/main/java/uk/ac/hutton/ics/brapi/server/core/season/BrapiSeasonServerResource.java index adcfd32..b751539 100644 --- a/src/main/java/uk/ac/hutton/ics/brapi/server/core/season/BrapiSeasonServerResource.java +++ b/src/main/java/uk/ac/hutton/ics/brapi/server/core/season/BrapiSeasonServerResource.java @@ -11,5 +11,5 @@ public interface BrapiSeasonServerResource BaseResult> getSeasons(); @Post - BaseResult> postSeason(Season[] newSeasons); + BaseResult> postSeasons(Season[] newSeasons); } diff --git a/src/main/java/uk/ac/hutton/ics/brapi/server/core/serverinfo/BrapiServerInfoResource.java b/src/main/java/uk/ac/hutton/ics/brapi/server/core/serverinfo/BrapiServerInfoResource.java index 5c1b532..265ad02 100644 --- a/src/main/java/uk/ac/hutton/ics/brapi/server/core/serverinfo/BrapiServerInfoResource.java +++ b/src/main/java/uk/ac/hutton/ics/brapi/server/core/serverinfo/BrapiServerInfoResource.java @@ -8,5 +8,5 @@ public interface BrapiServerInfoResource { @Get - BaseResult getServerInfo(); + BaseResult getServerinfo(); } diff --git a/src/main/java/uk/ac/hutton/ics/brapi/server/genotyping/variant/BrapiVariantServerResource.java b/src/main/java/uk/ac/hutton/ics/brapi/server/genotyping/variant/BrapiVariantServerResource.java index 0050681..cac3eb8 100644 --- a/src/main/java/uk/ac/hutton/ics/brapi/server/genotyping/variant/BrapiVariantServerResource.java +++ b/src/main/java/uk/ac/hutton/ics/brapi/server/genotyping/variant/BrapiVariantServerResource.java @@ -8,5 +8,5 @@ public interface BrapiVariantServerResource { @Get - TokenBaseResult> getVariants(); + TokenBaseResult> getAllVariants(); }