Swagger-servlet module POST type issue

2016-10-04 Thread avinash . upadhya28
Hi, I am integrating swagger-servlet to my APIs. In one the POST api i have two input parameters and rest of the data i am passing from POST body. So i used something like below annotations @ApiOperation( value="MyApi", notes="MyOrder", response=Model.class, httpMethod="POST", nickname="MyOrd

Same resource path

2016-09-06 Thread avinash . upadhya28
Is there any way i can have document two method with same name but with different input parameter? I am having a situation where i need to document the resources which all are hosted on a same path (kind of micro services in MyProjects/get?Parameters) but each micro-service has a same name but

Re: Customize swagger paths

2016-09-06 Thread avinash . upadhya28
In Short in My api/servlet there are several micro-services.. I wanted to document these services. Please let me know any suggestions On Tuesday, 6 September 2016 13:13:27 UTC+5:30, avinash@gmail.com wrote: > > Hi Folks, > > I have a servlet which redirects to a appropriate REST resource ba

Customize swagger paths

2016-09-06 Thread avinash . upadhya28
Hi Folks, I have a servlet which redirects to a appropriate REST resource based on input parameter. So i have annotated all my resource methods with @ApiOperation. But its taking the method name for creating the Resource path.I wanted it to take the Servlet path as the resource path. Can any

Re: @ApiImplicitParam for Collection objects.

2016-09-04 Thread avinash . upadhya28
Anyone tried this before? Please suggest me on this. Regards, *Avinash Upadhya* On Saturday, 3 September 2016 22:26:44 UTC+5:30, avinash@gmail.com wrote: > > I have tried with like this > > @ApiImplicitParam(name="myValues", value="Validation Values Map", required = > true, dataTyp

Re: @ApiImplicitParam for Collection objects.

2016-09-03 Thread avinash . upadhya28
I have tried with like this @ApiImplicitParam(name="myValues", value="Validation Values Map", required = true, dataType = "Map", paramType = "query") But no luck. On Saturday, 3 September 2016 22:02:15 UTC+5:30, avinash@gmail.com wrote: > > Hi All, > > I have a API which accepts

Re: @ApiImplicitParam for Collection objects.

2016-09-03 Thread avinash . upadhya28
I have tried with like this @ApiImplicitParam(name="valueMapForValidation", value="Validation Values Map", required = true, dataType = "Map", paramType = "query") But no luck. On Saturday, 3 September 2016 22:02:15 UTC+5:30, avinash@gmail.com wrote: > > Hi All, > > I have a API

@ApiImplicitParam for Collection objects.

2016-09-03 Thread avinash . upadhya28
Hi All, I have a API which accepts One string, and One MAP as the input. I am wondering how can i capture MAP input in swagger document using @ApiImplicitParams, @ApiImplicitParam annotations. Note: Am using Swagger-servlet Module. Thanks. -- You received this message because you are subscri

Re: Swagger definition generation

2016-09-03 Thread avinash . upadhya28
This is solved. Swaggerr-servlet module prints the Swagger config, but Swagger-JaxRS sends out the JSON object in the Httpresponse. On Wednesday, 31 August 2016 23:02:03 UTC+5:30, avinash@gmail.com wrote: > > Hi Folks, > > Previously i had integrated swagger into my dev projects which were R

Swagger definition generation

2016-08-31 Thread avinash . upadhya28
Hi Folks, Previously i had integrated swagger into my dev projects which were REST resources using JAX-RS/jersey library. In that project when i navigate to *http://localhost:8080/restapi/api/swagger.json* my browser use to give me popup option to save .json file. Now i started to work on Swa

Re: Swagger definition generation issue

2016-08-23 Thread avinash . upadhya28
Solved :) Thank you Ron :) On Tuesday, 23 August 2016 00:56:16 UTC+5:30, Ron wrote: > > You’re using an ancient version of swagger-core. Please update to the > latest and try again. > > > > > > > > *From: *> on behalf of " > avinash@gmail.com " > > *Reply-To: *"swagger-sw...@googlegroup

Swagger definition generation issue

2016-08-22 Thread avinash . upadhya28
Hi All, I have created a sample service suing servlet, and annotated as per the swagger specification. But when i do http://localhost:8080/MyApp/api it gives me below response. {"apiVersion":"0.0","swaggerVersion":"1.2"} I have seen all previous discussion on this issue in this forum and other

SWAGGER-Servlet implementation

2016-08-22 Thread avinash . upadhya28
Hi All, am trying to do a sample project using servlet API, and integrate the development with SWAGGER so that i can generate the API document. I am using below POM.xml http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven

Re: Swagger integration with service built using filters

2016-08-20 Thread avinash . upadhya28
Thank you for the response. I tired this. But there is some always some error will be there in my project b'se of dependency. I am not allowed to use only swagger specific jars in ma project. So could you please provide me what are the dependent jars list to integrate swagger. On Saturday, 20

Swagger integration with service built using filters

2016-08-19 Thread avinash . upadhya28
I have a REST services which doesn't use any opensource rest library (jersey etc..) Its implemented using Filters. Is it possible to generate a Swagger definition from such service by annotating the source code? If yes please share some details. -- You received this message because you are s