0

Is it possible to have a list of string as query param in JSONDoc ?

My code works, but i can't test it on JSONDoc.

My url is for example:

/url?statut=A&statut=B

Here is how the JSONDoc shows the test parameters :

enter image description here

So i can't test with multiples status .

Here is my code :

    @GET
    @Path("/url")
    @Produces(MediaType.APPLICATION_JSON)
    @ApiMethod(path = "url?statut={statut}", verb = ApiVerb.GET, description = "", produces = {
            MediaType.APPLICATION_JSON })
    @ApiResponseObject(clazz = MyClass.class)
    public Response get(
            @ApiQueryParam(name = "statut", description = "status list") @QueryParam("statut") final List<String> statuts ){

        log.info("get status :" + statuts);
        return ...;
    }
anais1477
  • 466
  • 1
  • 17
  • 36

0 Answers0