Explicitly Define Class in @ApiParam

1,697 views
Skip to first unread message

Ali Abbas

unread,
May 23, 2014, 6:32:01 AM5/23/14
to swagger-sw...@googlegroups.com
Hi All,

Actually in our scenario we comsume Json as String type and then parse that String to JSONObject. 
So when i apply @APIOperation as below

@POST()
    @Produces(MediaType.APPLICATION_JSON)
    @Consumes(MediaType.APPLICATION_JSON)
    @Path("/admin/Alert/create")
    @ApiOperation(value = "Add Alerts",
            notes = "Multiple status values can be provided with comma seperated strings",
            response = JSONObject.class,
            produces = MediaType.APPLICATION_JSON,
            consumes = MediaType.APPLICATION_JSON)
    public String createAlert(String jSONBody, @HeaderParam("userId") String usrId, @HeaderParam("userId") int userId) throws Exception {
 
i got response as below

But i want to use a Separate Class for the definition of JsonString in Data Type. 

Like we can define for Reponse in @ApiOperation(value = "Add Alerts", response = JSONObject.class)

Is there way we define something like DataType?

Ali Abbas

unread,
May 23, 2014, 6:36:54 AM5/23/14
to swagger-sw...@googlegroups.com
I want output something like that

Wanted define DataType for the Param other from it's original.

Ron

unread,
May 23, 2014, 8:54:56 AM5/23/14
to swagger-sw...@googlegroups.com
Ali,

If the user is supposed to send you a string, then it works as expected.
You can override parameter definitions using @ApiParam and @ApiImplicitParam


--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ali Abbas

unread,
May 23, 2014, 5:46:29 PM5/23/14
to swagger-sw...@googlegroups.com
Thanks alot. Actually i have tried it but it didn't worked earlier. Actually i'm making a small mistake. I don't know that @apiimplicitparam is alway used inside @apiimplicitparams.

@ApiImplicitParams({
        @ApiImplicitParam(dataType = "tag", paramType = "body", name = "user")})

One thing that i Stuck on is in using "complex (as models) " datatype. I have defined Tag.java (Attached) and i want to use it in the 
@POST()
    @Produces(MediaType.APPLICATION_JSON)
    @Consumes(MediaType.APPLICATION_JSON)
    @Path("/admin/Alert/create")
    @ApiOperation(value = "Finds All Alerts",
            notes = "Multiple status values can be provided with comma seperated strings",
            response = Person.class,
            produces = MediaType.APPLICATION_JSON)
    @ApiImplicitParams({
        @ApiImplicitParam(dataType = "tag", paramType = "body", name = "user")})
    public String createAlert(@ApiParam(access = "internal") String jSONBody, @ApiParam(access = "internal") @HeaderParam("userId") String usrId, @ApiParam(access = "internal") @HeaderParam("userId") int userId) throws Exception {

tag is not identified as model until i defined Tag.java in reponse as well.
response = Tag.class,
If i don't define as above then it don't show the Model/Model Schema, instead just print tag string as below

Regards,
Ali Abbas
On Friday, May 23, 2014 5:54:56 PM UTC+5, Ron R wrote:

Ali,

If the user is supposed to send you a string, then it works as expected.
You can override parameter definitions using @ApiParam and @ApiImplicitParam
On Fri, May 23, 2014 at 1:36 PM, Ali Abbas <s.ali.ab...@gmail.com> wrote:
I want output something like that

Wanted define DataType for the Param other from it's original.

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
Tag.java

Ron

unread,
May 25, 2014, 8:16:21 AM5/25/14
to swagger-sw...@googlegroups.com
Can you please share the JSON output from swagger?


To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.

Ali Abbas

unread,
May 26, 2014, 1:28:09 AM5/26/14
to swagger-sw...@googlegroups.com

{
  • apiVersion"1.0.0",
  • swaggerVersion"1.2",
  • resourcePath"/admin",
  • apis
    [
    • {
      • path"/admin/admin/Alert",
      • operations
        [
        • {
          • method"GET",
          • summary"Finds All Alerts",
          • notes"Multiple status values can be provided with comma seperated strings",
          • type"person",
          • nickname"getAllAlert",
          • produces
            [
            • "application/json"
            ],
          • parameters
            [
            • {
              • name"body",
              • requiredfalse,
              • allowMultiplefalse,
              • type"string",
              • paramType"body"
              },
            • {
              • name"userId",
              • requiredfalse,
              • allowMultiplefalse,
              • type"string",
              • paramType"header"
              }
            ]
          }
        ]
      },
    • {
      • path"/admin/admin/Alert/create",
      • operations
        [
        • {
          • method"POST",
          • summary"Finds All Alerts",
          • notes"Multiple status values can be provided with comma seperated strings",
          • type"person",
          • nickname"createAlert",
          • produces
            [
            • "application/json"
            ],
          • consumes
            [
            • "application/json"
            ],
          • parameters
            [
            • {
              • name"user",
              • requiredfalse,
              • allowMultiplefalse,
              • type"tag",
              • paramType"body"
              }
            ]
          }
        ]
      }
    ],
  • models
    {
    • person
      {
      • id"person",
      • properties
        {
        • email
          {
          • type"string"
          },
        • userName
          {
          • type"string"
          }
        }
      }
    }
}

It's clearly visible that tag model not generated in json.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsubscri...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ron

unread,
May 26, 2014, 2:27:33 AM5/26/14
to swagger-sw...@googlegroups.com
Okay, this seems like an introspection bug. The Tag class is not being added to the models if it's not being referred to directly (like you said, with response=Tag.class for example).
Could you please open an issue about it on swagger-core?


To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.

Ali Abbas

unread,
May 26, 2014, 4:16:04 AM5/26/14
to swagger-sw...@googlegroups.com
Ooh i'll open the bug. Do you belong to swagger developer team?
Just asking this, because there might be a case that this bug is being already reported, OR might be fixed in some later version. 
I'm currently using
<dependency>
            <groupId>com.wordnik</groupId>
            <artifactId>swagger-core_2.9.1</artifactId>
            <version>1.3.0</version>
        </dependency>

Ron

unread,
May 26, 2014, 4:25:40 AM5/26/14
to swagger-sw...@googlegroups.com
Yes, I am.

Okay, you're using a really old version, should have checked that first.

Please update to
<dependency>
            <groupId>com.wordnik</groupId>
            <artifactId>swagger-core_2.10</artifactId>
            <version>1.3.5</version>
        </dependency>

and try again.



To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.

Ali Abbas

unread,
May 26, 2014, 4:31:36 AM5/26/14
to swagger-sw...@googlegroups.com
Sorry for bothering you again and again. I'm using below mentioned bundle of swagger dependencies. 
Can you please tell me do i need to change versions of other dependencies of swagger that i'm using, as to make it compatible with changed swagger-core version.
Below are the dependencies i'm using
<dependency>
            <groupId>com.wordnik</groupId>
            <artifactId>swagger-annotations_2.10</artifactId>
            <version>1.3.0</version>
        </dependency>
        <dependency>
            <groupId>com.wordnik</groupId>
            <artifactId>swagger-core_2.9.1</artifactId>
            <version>1.3.0</version>
        </dependency>
        <dependency>
            <groupId>com.wordnik</groupId>
            <artifactId>swagger-jaxrs_2.9.1</artifactId>
            <version>1.3.0</version>
            <exclusions>
                <exclusion>
                    <artifactId>javassist</artifactId>
                    <groupId>javassist</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>dom4j</artifactId>
                    <groupId>dom4j</groupId>
                </exclusion>
            </exclusions>
        </dependency>  

Ron

unread,
May 26, 2014, 4:35:12 AM5/26/14
to swagger-sw...@googlegroups.com
You're not bothering at all.

Basically, you don't need the swagger-annotations dependency.

Keep swagger-core and swagger-jaxrs with _2.10 extension (instead of _2.9.1) and bump the version up to 1.3.5.


        <dependency>
            <groupId>com.wordnik</groupId>
            <artifactId>swagger-core_2.10</artifactId>
            <version>1.3.5</version>
        </dependency>
        <dependency>
            <groupId>com.wordnik</groupId>
            <artifactId>swagger-jaxrs_2.10</artifactId>
            <version>1.3.5</version>
</dependency>




To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.

Ali Abbas

unread,
May 27, 2014, 4:57:33 AM5/27/14
to swagger-sw...@googlegroups.com
I have tested the code with the versions you told me, problem still persist and also new exception occurred :(
Services working as before but when the service called form swagger-ui it start giving some exception.
The exception might be related to my jboss setting as it's given error of unsupported accept header


<dependency>
            <groupId>com.wordnik</groupId>
            <artifactId>swagger-core_2.10</artifactId>
            <version>1.3.0</version>
        </dependency>
        <dependency>
            <groupId>com.wordnik</groupId>
            <artifactId>swagger-jaxrs_2.10</artifactId>
            <version>1.3.0</version>
            <exclusions>
                <exclusion>
                    <artifactId>javassist</artifactId>
                    <groupId>javassist</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>dom4j</artifactId>
                    <groupId>dom4j</groupId>
                </exclusion>
            </exclusions>
        </dependency>

I'll definitely post a bug on swagger as well. 

Ali Abbas

unread,
May 27, 2014, 5:00:41 AM5/27/14
to swagger-sw...@googlegroups.com
Print of Stack Trace.

13:20:04,930 SEVERE [org.jboss.resteasy.core.SynchronousDispatcher] (http--0.0.0.0-8888-2) Failed executing GET /api-docs: org.jboss.resteasy.spi.NotAcceptableException: No match for accept header
at org.jboss.resteasy.core.registry.Segment.match(Segment.java:119) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.registry.SimpleSegment.matchSimple(SimpleSegment.java:33) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.registry.RootSegment.matchChildren(RootSegment.java:327) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.registry.RootSegment.matchRoot(RootSegment.java:374) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.registry.RootSegment.matchRoot(RootSegment.java:367) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.ResourceMethodRegistry.getResourceInvoker(ResourceMethodRegistry.java:307) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.getInvoker(SynchronousDispatcher.java:173) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:118) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.2.Final.jar:]
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.2.Final.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
On Friday, May 23, 2014 5:54:56 PM UTC+5, Ron R wrote:<blockquote class="gmail_quote" st
...

Ron

unread,
May 27, 2014, 9:36:02 AM5/27/14
to swagger-sw...@googlegroups.com
Ali,

First of all, please don't use version 1.3.0. Really, it's too old. Stick with 1.3.5.

The described error is definitely a different one.
Can you access the Swagger endpoint directly (that is, see the generated JSON)?
Which version of Swagger-UI do yo use?
Have you added any form of CORS support to the application?


--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.

Ali Abbas

unread,
May 27, 2014, 2:11:37 PM5/27/14
to swagger-sw...@googlegroups.com
Sure, but i need to fix these issue.

Yes, when i paste url in browser it generate the json well.

I downloaded the swagger-ui from below url
i think it's version 2.0.17

Yup i'm using CORS filters, below is my web.xml

<?xml version="1.0" encoding="UTF-8"?>
         version="3.0">
    <display-name>ConnectloudWeb</display-name>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    
    <context-param>
        <param-name>resteasy.resources</param-name>
        <param-value>com.wordnik.swagger.jaxrs.listing.ApiListingResourceJSON</param-value>
    </context-param>

    <context-param>
        <param-name>resteasy.providers</param-name>
        <param-value>
            com.wordnik.swagger.jaxrs.listing.ApiDeclarationProvider
            ,com.wordnik.swagger.jaxrs.listing.ResourceListingProvider
            ,com.connectloudweb.webservices.interceptor.SecurityInterceptor
        </param-value>
    </context-param>
        
    <context-param>
        <param-name>resteasy.scan</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>resteasy.scan.providers</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>resteasy.scan.resources</param-name>
        <param-value>false</param-value>
    </context-param>
    <!--    <servlet>
        <servlet-name>ApiDeclarationServlet</servlet-name>
        <servlet-class>com.wordnik.swagger.servlet.listing.ApiDeclarationServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>ApiDeclarationServlet</servlet-name>
        <url-pattern>/api-docs/*</url-pattern>
    </servlet-mapping>-->
    <servlet>
        <servlet-name>DefaultJaxrsConfig</servlet-name>
        <servlet-class>com.wordnik.swagger.jaxrs.config.DefaultJaxrsConfig</servlet-class>
        <init-param>
            <param-name>api.version</param-name>
            <param-value>1.0.0</param-value>
        </init-param>
        <init-param>
            <param-name>swagger.api.basepath</param-name>
            <param-value>http://localhost:8888/api</param-value>
        </init-param>
        <init-param>
            <param-name>swagger.filter</param-name>
            <param-value>com.connectloudweb.webservices.ApiAuthorizationFilterImpl</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
    <!--context-param>
        <param-name>resteasy.scan</param-name>
        <param-value>true</param-value>
    </context-param -->
    <!--    <context-param>
        <param-name>resteasy.providers</param-name>
        <param-value>com.connectloudweb.webservices.interceptor.SecurityInterceptor</param-value>
    </context-param>-->
    <!--    <context-param>
        <param-name>resteasy.servlet.mapping.prefix</param-name>
        <param-value>/</param-value>
    </context-param>-->
    <servlet>
        <servlet-name>Resteasy</servlet-name>
        <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>Resteasy</servlet-name>
        <url-pattern>/admin/*</url-pattern>
        <url-pattern>/api-docs/*</url-pattern>
        <url-pattern>/message/*</url-pattern>
    </servlet-mapping>
    <context-param>
        <param-name>javax.ws.rs.core.Application</param-name>
        <param-value>com.connectloudweb.webservices.MyRESTApplication</param-value>
    </context-param>
    <listener>
        <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
    </listener>
    <filter>
        <filter-name>CORS</filter-name>
        <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
        <init-param>
            <param-name>cors.allowGenericHttpRequests</param-name>
            <param-value>true</param-value>
        </init-param>
  
        <init-param>
            <param-name>cors.allowOrigin</param-name>
            <param-value>*</param-value>
        </init-param>
        <init-param>
            <param-name>cors.allowSubdomains</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>cors.supportedMethods</param-name>
            <param-value>GET, HEAD, POST, OPTIONS, PUT, DELETE</param-value>
        </init-param>
  
        <init-param>
            <param-name>cors.supportedHeaders</param-name>
            <!--param-value>Content-Type, X-Requested-With, Accept, Authentication</param-value-->
            <param-value>cache-control,Pragma,Origin,Content-Type, X-Requested-With, Accept, Authentication, Access-Control-Allow-Origin</param-value>
        </init-param>
  
        <init-param>
            <param-name>cors.exposedHeaders</param-name>
            <param-value>X-Test-1, X-Test-2</param-value>
        </init-param>
  
        <init-param>
            <param-name>cors.supportsCredentials</param-name>
            <param-value>false</param-value>
        </init-param>
  
        <init-param>
            <param-name>cors.maxAge</param-name>
            <param-value>36000</param-value>
        </init-param>
    </filter>

    <filter-mapping>
        <filter-name>CORS</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
</web-app>


Print of Stack Trace.

One thing that i Stuck on is in using "<a href="https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#527-model-object" style="color:rgb(65,131,196);font-family:Helvetica,arial,freesans,cl
...

Ron

unread,
May 27, 2014, 2:39:38 PM5/27/14
to swagger-sw...@googlegroups.com
I'm not sure why you're getting this error. The request itself is for application/json which resteasy should have no problem complying with.
Did it work before any of these changes?

If you can, feel free to hop into our IRC channel over at #swa...@irc.freenode.net and we could iterate over it in real time. If not, let's continue with the emails.


--

Ali Abbas

unread,
May 27, 2014, 3:19:07 PM5/27/14
to swagger-sw...@googlegroups.com
yes it was all working fine. Still now if only change the version back to 1.3.0 the error gone and all works fine. I also checked the version 1.3.4, in that version as well the error persist. Only in 1.3.0 it works.

Sure i'll mail the project. I'm also attaching the project. I have removed that dependencies related my project and just testing the message service in attached project but still error occurs.
...
RestAPI.rar

tony tam

unread,
Jun 1, 2014, 7:53:48 PM6/1/14
to swagger-sw...@googlegroups.com
Ali, did you get this sorted out?
Print of Stack Trace.

          &nbsp
...

Ali Abbas

unread,
Jun 2, 2014, 1:43:36 AM6/2/14
to swagger-sw...@googlegroups.com
No, i didn't figured it out yet. Not sure what exactly the problem is?
</b
...

Steve Lustbader

unread,
Jun 29, 2014, 9:38:41 PM6/29/14
to swagger-sw...@googlegroups.com
I encountered this same problem in 1.3.6, so I filed an issue for it: https://github.com/wordnik/swagger-core/issues/606

wjba...@gmail.com

unread,
Aug 11, 2014, 9:48:19 AM8/11/14
to swagger-sw...@googlegroups.com
Hi Ali,
Today I have encountered the exact stacktrace you mentioned. The root cause was the HttpRequest accepts application/json, but the resource products application/json;charset=utf-8.

First, add a new HttpRequestPreprocessor

public class DefaultHttpRequestPreprocessor implements HttpRequestPreprocessor
{
   
private static final String CHARSET = "charset";
   
private static final String UTF_8 = "utf-8";

   
private static final MediaType APPLICATION_JSON_UTF_8_TYPE = new MediaType(
        APPLICATION_JSON_TYPE
.getType(),
        APPLICATION_JSON_TYPE
.getSubtype(),
       
ImmutableMap.of(CHARSET, UTF_8));

   
@Override
   
public void preProcess(HttpRequest request)
   
{
       
List<MediaType> acceptableMediaTypes = request.getHttpHeaders().getAcceptableMediaTypes();

       
if (acceptableMediaTypes.contains(APPLICATION_JSON_TYPE))
       
{
            acceptableMediaTypes
.add(APPLICATION_JSON_UTF_8_TYPE);
       
}
   
}
}

Install this onto the ResteasyBootstrap

public class DefaultResteasyBootstrap extends ResteasyBootstrap
{
   
@Override
   
public void contextInitialized(ServletContextEvent event)
   
{
       
super.contextInitialized(event);

        deployment
.getDispatcher().addHttpPreprocessor(new DefaultHttpRequestPreprocessor());
   
}
}


Then, add the custom DefaultResteasyBootstrap to the servletContextHandler

ServletContextHandler servletContextHandler = new WebAppContext();
servletContextHandler
.addEventListener(new DefaultResteasyBootstrap());

Hope this helps.

Op maandag 2 juni 2014 07:43:36 UTC+2 schreef Ali Abbas:
No, i didn't figured it out yet. Not sure what exactly the problem is?
 
(...)

Print of Stack Trace.


(...)
...

Ali Abbas

unread,
Nov 25, 2014, 4:00:46 AM11/25/14
to swagger-sw...@googlegroups.com
It worked thanks :)
Reply all
Reply to author
Forward
0 new messages