#@nestjs/swagger: How to add the example Header in swagger

6 messages · Page 1 of 1 (latest)

lyric moth
#

Hi, I'm trying to implement a api doc for my webhook api, to received the request in Stripe
It require a header "stripe-signalture” and raw body.

So I’m using @halcyon swanHeader to show the field to user insert the example signalture in swagger,
But, when I using option “example” with this decorator, it’s not working

And also anybody can tell me how to add a raw body to the request in swagger?
Thanks

lyric moth
#

..

sturdy tulip
#

Maybe in the ApiOperation decorator you can define an example? I'm not sure since I'm not in front of a computer right now..

torn bloom
lyric moth
lyric moth