--------------------------------------------
On Wed, 12/21/16, louis_holbrook via Swagger 
<[email protected]> wrote:

 Subject: Re: swagger-codegen - Generated JAX-RS RESTEasy stub is missing 
swagger annotations
 To: [email protected]
 Date: Wednesday, December 21, 2016, 7:46 PM
 
 
 --------------------------------------------
 On Wed, 12/21/16, Markus Karnik <[email protected]>
 wrote:
 
  Subject: Re: swagger-codegen - Generated JAX-RS RESTEasy
 stub is missing swagger annotations
  To: "Swagger" <[email protected]>
  Date: Wednesday, December 21, 2016, 6:48 PM
  
  Hi,
  I've created a ticket:
  https://github.com/swagger-api/swagger-codegen/issues/4447
  ThanksMarkus
  Am Mittwoch, 21. Dezember 2016 10:17:35 UTC+1
  schrieb Markus Karnik: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.
  se        ' Otomar1  vehiculate la
 Congresul european  si sa se fi gandit ca  intr-o
 
 -- 
 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.
 dunarea a votat  in unanimitate documentul intitulat Petitiunea Nationala . Se 
revendicau independenta nationala  a romanilor din Transilvania  desfiintarea 
iobagiei fara nici o despagubire din partea taranilor  constituirea unei garzi 
nationale romanesti  libertatea persoanei  a cuvantului si intrunirilor. Din 
motive tactice  Adunarea a exprimat fidelitatea natiunii romane fata de 
imparatul de la Viena si dinastia conducatoare. De asemenea  locul desfasurarii 
istoricei Adunari a capatat denumirea de Campia Libertatii. Adunarea a decis ca 
programul revolutiei sa fie prezentat de doua delegatii -una la Viena si alta 
la Cluj. A fost ales un Comitet National Roman  Permanent   cu sediul la Sibiu  
sub pre edintia lui Andrei saguna. Adevaratul conducator era .insa Simion 
Barnutiu.

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

Reply via email to