Skip to content

Support for header parameters #5

@zverok

Description

@zverok

As discussed in #4.

Some APIs require passing parameter in headers (especially often with auth.params), it should be supported this way:

# ...somewhere inside API description
param :jwt_token, format: ->(token) { "Bearer: #{@jwt_token}" }, header: 'Authorization'

# ...

# usage:
client = SomeApiClient.new(jwt_token: "some_token")
client.some_method

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions