teunmooij / payload-tools

Collection of payload plugins and tools: payload-openapi, payload-swagger, create-payload-api-docs, payload-rbac
https://github.com/teunmooij/payload-tools/#readme
MIT License
94 stars 12 forks source link

[Feature request]: Add request body definition to custom endpoints #75

Open Davidvision opened 10 months ago

Davidvision commented 10 months ago

Package name

payload-openapi

Description

Hello !

I've noticed that the requestBody definition is not present in the custom endpoint definitions. I looked at the code and indeed, it seems that they are not handled, whereas the generated endpoints do include the requestBody.

Any plan on supporting this soon ?

Thanks a lot

WilsonLe commented 8 months ago

@teunmooij Can we have a review of the PR for this enhancement? Cheers!

zawoj commented 6 months ago

👋Hi, I need this as well. Is it possible to add this to the plugin?