laravel-swagger icon indicating copy to clipboard operation
laravel-swagger copied to clipboard

How to annotate parameters for describing response

Open r4m-sergeya opened this issue 1 year ago • 3 comments

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

r4m-sergeya avatar Aug 30 '23 17:08 r4m-sergeya

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.

DenTray avatar Sep 01 '23 12:09 DenTray

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

helicoder avatar Feb 14 '24 14:02 helicoder

@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

DenTray avatar Feb 20 '24 07:02 DenTray