quarkiverse / quarkus-openapi-generator

OpenAPI Generator - REST Client Generator
Apache License 2.0
108 stars 66 forks source link

Add custom headers to method calls #643

Closed mcruzdev closed 5 months ago

mcruzdev commented 5 months ago

Discussed in https://github.com/quarkiverse/quarkus-openapi-generator/discussions/625

Originally posted by **ru4ert** January 15, 2024 Is there a way to generate the interfaces with additional custom headers? The rest client hast [custom header](https://quarkus.io/guides/rest-client-reactive#custom-headers-support) support. You can add `quarkus.openapi-generator.codegen.spec.petstore.additional-api-type-annotations`. Is there something similar for methods? Updating the template is one idea, but is there another way?