api-platform / admin

A beautiful and fully-featured administration interface builder for hypermedia APIs
https://api-platform.com/docs/admin/
MIT License
480 stars 130 forks source link

Add Support for Custom Headers to ParseOpenApi3Documentation #501

Open GhostStatus opened 1 year ago

GhostStatus commented 1 year ago

Description
It would be ideal if we could support allowing for custom headers while leveraging the parseOpenApi3Documentation function. Currently this is only supported in parseHydraDocumentation, but I have a need to parse an openAPI.json file and would love a means of adding support for authentication while parsing it.

Example
Essentially I would like to be able to leverage the example here without using Hydra. Thanks

GhostStatus commented 1 year ago

Alternatively if there is a workaround please let me know. Do I need to somehow convert my openAPI.json file to a hydra one? I'm not sure what the easiest solution is here.