Swagger Core 2.0.0-rc2 with RESTEasy 3.x example

439 views
Skip to first unread message

Mathis Møller

unread,
Oct 25, 2017, 7:59:53 AM10/25/17
to Swagger
I'm currently trying to get the new version of Swagger Core to work with a Wildfly application using RESTEasy 3.0.12.


Are there any examples/guide to use the new Swagger Core with RESTEasy 3?

Thanks in advance.

Ron Ratovsky

unread,
Oct 25, 2017, 12:42:15 PM10/25/17
to swagger-sw...@googlegroups.com

We currently don’t have examples for RESTEasy, but we do for Jersey. It should be simple enough to follow a similar route in RESTEasy.

--
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.

Mathis Møller

unread,
Oct 25, 2017, 12:49:13 PM10/25/17
to Swagger
I tried to follow the Jersey example without luck.

I came as far as setting up the OpenApiServlet, but I can't get Swagger to "find" my @Operation annotations on my RESTEasy services.

You got any idea of what I'm missing or could you provide a super quick guide?

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

Ron Ratovsky

unread,
Oct 25, 2017, 1:03:37 PM10/25/17
to swagger-sw...@googlegroups.com

Did you get a chance to take a look at the sample in https://github.com/swagger-api/swagger-samples/tree/2.0/java/java-jersey2?

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.

--

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.

Mathis Møller

unread,
Oct 25, 2017, 1:11:48 PM10/25/17
to Swagger
Yes, I even pulled the repo and started the example up. It doesn't work.

And I can't use a JerseyServletContainer, when I'm using RESTEasy.


On Wednesday, 25 October 2017 19:03:37 UTC+2, Ron wrote:

Did you get a chance to take a look at the sample in https://github.com/swagger-api/swagger-samples/tree/2.0/java/java-jersey2?

 

 

 

From: <swagger-sw...@googlegroups.com> on behalf of Mathis Møller <thi...@gmail.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Wednesday, October 25, 2017 at 09:49
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Re: Swagger Core 2.0.0-rc2 with RESTEasy 3.x example

 

I tried to follow the Jersey example without luck.

 

I came as far as setting up the OpenApiServlet, but I can't get Swagger to "find" my @Operation annotations on my RESTEasy services.

 

You got any idea of what I'm missing or could you provide a super quick guide?


On Wednesday, 25 October 2017 18:42:15 UTC+2, Ron wrote:

We currently don’t have examples for RESTEasy, but we do for Jersey. It should be simple enough to follow a similar route in RESTEasy.

 

 

From: <swagger-sw...@googlegroups.com> on behalf of Mathis Møller <thi...@gmail.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Wednesday, October 25, 2017 at 04:59
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Swagger Core 2.0.0-rc2 with RESTEasy 3.x example

 

I'm currently trying to get the new version of Swagger Core to work with a Wildfly application using RESTEasy 3.0.12.

 

 

Are there any examples/guide to use the new Swagger Core with RESTEasy 3?

 

Thanks in advance.

--
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.


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

--
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.

Francesco Tumanischvili

unread,
Nov 2, 2017, 4:49:45 PM11/2/17
to Swagger
New RESTEasy specific modules have been added to swagger-samples, please check them out, they cover a (non exhaustive) set of possible scenarios: https://github.com/swagger-api/swagger-samples/tree/2.0/java. They work with latest swagger-core 2.0.0-SNAPSHOT version (available in sonatype), the majority should probably work also with 2.0.0-rc2 release candidate, but it's better to use latest snapshot, which changes will be part of next rc.

Also you mentioned that pulling the samples repo, and starting the jersey2 example doesn't work; can you share some more details, what error do you get?
Reply all
Reply to author
Forward
0 new messages