https://kotlinlang.org logo
#http4k
Title
m

Mehdi

09/14/2020, 12:27 PM
I am trying to write a contract for openAPI which accepts specific header (“foo”), I could not find a sample for that, could somebody help me?
Copy code
routes += "/foo" meta {
    summary = "my summary"
    description = "my desc"
    headers= ?
    receiving(myLens to MyDTO())
}
I need to get this header as swagger needs to pass it into my API