-------------------------------------------- On Wed, 12/21/16, Ron Ratovsky <[email protected]> wrote:
Subject: Re: swagger-codegen - Generated JAX-RS RESTEasy stub is missing swagger annotations To: "[email protected]" <[email protected]> Date: Wednesday, December 21, 2016, 6:17 PM #yiv1544649497 #yiv1544649497 -- _filtered #yiv1544649497 {font-family:Arial;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv1544649497 {panose-1:2 7 3 9 2 2 5 2 4 4;} _filtered #yiv1544649497 {panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv1544649497 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} #yiv1544649497 #yiv1544649497 p.yiv1544649497MsoNormal, #yiv1544649497 li.yiv1544649497MsoNormal, #yiv1544649497 div.yiv1544649497MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;} #yiv1544649497 a:link, #yiv1544649497 span.yiv1544649497MsoHyperlink {color:blue;text-decoration:underline;} #yiv1544649497 a:visited, #yiv1544649497 span.yiv1544649497MsoHyperlinkFollowed {color:purple;text-decoration:underline;} #yiv1544649497 p {margin-right:0cm;margin-left:0cm;font-size:12.0pt;} #yiv1544649497 span.yiv1544649497EmailStyle18 {font-family:Calibri;color:windowtext;} #yiv1544649497 span.yiv1544649497msoIns {text-decoration:underline;color:teal;} #yiv1544649497 .yiv1544649497MsoChpDefault {font-size:10.0pt;} _filtered #yiv1544649497 {margin:72.0pt 72.0pt 72.0pt 72.0pt;} #yiv1544649497 div.yiv1544649497WordSection1 {} #yiv1544649497 Can you open a ticket on swagger-codegen with the details? From: <[email protected]> on behalf of Markus Karnik <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Wednesday, 21 December 2016 at 1:17 To: Swagger <[email protected]> Subject: swagger-codegen - Generated JAX-RS RESTEasy stub is missing swagger annotations Hi, after generating the server stub for my jee test application based on RESTEasy with codegen the generated swagger.json just shows: {"swagger":"2.0"} When I checked the generated server stub I noticed that the swagger annotations are missing. This is also the case with the petstore when exporting the stub with the swagger-editor. When generating for the default JAX-RS (Jersey), the code does include the annotations. For Example: CustomerApi.java - JAX-RS RESTEasy @Path("/customers") @Consumes({ "application/json" }) @Produces({ "application/json" }) @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaResteasyServerCodegen", date = "2016-12-21T08:42:36.363Z") public class CustomersApi { private final CustomersApiService delegate = CustomersApiServiceFactory.getCustomersApi(); @POST @Consumes({ "application/json" }) @Produces({ "application/json" }) public Response addCustomer( NewCustomer customer,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addCustomer(customer,securityContext); } CustomerApi.java - JAX-RS (Jersey) @Path("/customers") @Consumes({ "application/json" }) @Produces({ "application/json" }) @io.swagger.annotations.Api(description = "the customers API") @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2016-12-21T09:06:25.420Z") public class CustomersApi { private final CustomersApiService delegate = CustomersApiServiceFactory.getCustomersApi(); @POST @Consumes({ "application/json" }) @Produces({ "application/json" }) @io.swagger.annotations.ApiOperation(value = "", notes = "Creates a new customer in the store. Duplicates are allowed", response = Customer.class, tags={ }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "customer response", response = Customer.class), @io.swagger.annotations.ApiResponse(code = 200, message = "unexpected error", response = Customer.class) }) public Response addCustomer(@ApiParam(value = "Customer to add to the store" ,required=true) NewCustomer customer ,@Context SecurityContext securityContext) throws NotFoundException { return delegate.addCustomer(customer,securityContext); } After checking the templates I found out that there is no swagger annotation definition in the RESTEasy templates at all. Is this by design or a bug? If this is by design, how is Swagger is indexing the services? Unfortunalty I was not able to find any information on that. ThanksMarkus-- 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 [email protected]. 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 [email protected]. For more options, visit https://groups.google.com/d/optout. n capitol important al vietii politice interne din aceasta perioada l-au constituit si raporturile sinuoase si contradictorii dintre Caro al - ea si legionari. Daca pana catre 1938 regele a sperat sa-i foloseasca ca o masa de manevra pentru a-si intari regimul dupa instaurarea regimului personal initial justificat prin primejdia legionara raporturile intre cei doi factori politici s-au incordat din nou. Scrisoarea jignitoare a lui Corne iu Codreanu adresata la 26 martie 1938 lui Nicolae lorga a furnizat autoritatilor ocazia ca pe baza prevederilor decretului-lege din 14 aprilie 1938 privind apararea ordinei in stat sa incrimineze organizatia legionarilor dezvaluind prin numeroase documente care atestau legaturi cu Germania si Italia stipendii primite din partea acestora pregatirea unor acte teroriste. Pe baza acestor probe Corneliu Codreanu si unii lideri legionari au fost condamnati la inchisoare. Conducatorul legionar a cerut adeptilor sai sa se supuna pentru a nu pune in pericol viata celor inchisi. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
