loic911 / Rest-api-doc

MIT License
21 stars 32 forks source link

able to get the body part, but not getting parameters #32

Open bp89 opened 10 years ago

bp89 commented 10 years ago

I have following settings for docs

@RestApiMethod(description="Generic query on an ",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

loic911 commented 10 years ago

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.

bp89 commented 10 years ago

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.

loic911 commented 10 years ago

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?