Skip to content

Custom Response Headers #1169

Answered by lbroudoux
goll-michael asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @goll-michael,

Yes you can! Just integrate response headers in your example within your artifact. For example, if using an OpenAPI spec, you can have:

    responses:
      '200':
        [...]
        headers:
          'X-api-deprecation':
            schema:
              type: boolean
            examples:
              example_1:
                value: true
              example_2:
                value: false

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@goll-michael
Comment options

Answer selected by goll-michael
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants