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
#@nestjs/swagger: How to add the example Header in swagger
6 messages · Page 1 of 1 (latest)
..
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..
what do you mean by saying:
option “example” with this decorator
is this what you're looking for?
@ApiHeader({
name: 'stripe-signalture',
description: 'foo',
required: true,
style: 'simple',
})
That’s my point.
I want to defined an example,
Same with @halcyon swanQuerry and @halcyon swanProperty
That mean property “example” in option of @halcyon swanHeader