RonasIT / laravel-swagger

Laravel-Swagger is a fully automate tool which allows to generate and save swagger-based documentation after successful completing your application's feature tests.
https://ronasit.com
MIT License
148 stars 43 forks source link

How to annotate parameters for describing response #101

Open r4m-sergeya opened 1 year ago

r4m-sergeya commented 1 year ago

This cool package, but it can auto generate swagger specs for request params only, but how can I manually annotate response parameters? Thanks in advance

DenTray commented 1 year ago

Hi, @r4m-sergeya ! Could you please share an example of the response specs?

At the moment we just save the example to the open api file without fields description.

helicoder commented 8 months ago

I find that the @description set in the comments of the requst does not come through

DenTray commented 8 months ago

@helicoder Hi! I've tried both cases on the 2.2 version of the package and it works for me, here are examples:

image image