Rest-api-doc icon indicating copy to clipboard operation
Rest-api-doc copied to clipboard

able to get the body part, but not getting parameters

Open bp89 opened this issue 10 years ago • 3 comments

I have following settings for docs

@RestApiMethod(description="Generic query on an <Object>",verb = RestApiVerb.POST) @RestApiParams(params=[ @RestApiParam(name="max", type="long", paramType = RestApiParamType.QUERY, description = "The object id"), @RestApiParam(name="offfset", type="long", paramType = RestApiParamType.QUERY, description = "The object id"), @RestApiParam(name="order", type="string", paramType = RestApiParamType.QUERY, description = "The object id",allowedvalues=['asc','desc']), @RestApiParam(name="sort", type="string", paramType = RestApiParamType.QUERY, description = "The object id") ])

I am able to make a post call, and is able to get the body part, but not getting parameters, i changed RestApiParamType.QUERY to PATH as well but it didn't work. Is it some bug or some issue unseen so far. Need help on very urgent basis

bp89 avatar Sep 23 '14 02:09 bp89

I'm not sure to understand the issue. Do you have an issue with the PLAYGROUND (from rest api doc report)? Parameters were broken in an old version. Now it should be fix.

loic911 avatar Sep 23 '14 06:09 loic911

Yes!In playground section.The parameters are not coming in request while body is coming.We can have a small chat on hangouts if possible.I need it be resolved as soon as possible.

bp89 avatar Sep 23 '14 13:09 bp89

I try with my actual version playground (0.3.1) and it works well. The url has max, offfstet (type error?),...

image

Can you just copy the url build by the playground?

loic911 avatar Sep 24 '14 06:09 loic911