Hard Coding Api Key value in header when using a Swagger Generated Client

28 views
Skip to first unread message

Luca Natali

unread,
May 26, 2016, 9:47:00 AM5/26/16
to Swagger
Hi,

    Is it possibile to hard code an Application Id while generating a client from a swagger.json?

In Swagger Client Generator's page I have found this model that permit to set up the clients options but I cannot find how (and if) the API key can be hard coded in the client.

GeneratorInput {
    spec
(object, optional),
    options
(object, optional),
    swaggerUrl
(string, optional),
    authorizationValue
(AuthorizationValue, optional),
    securityDefinition
(SecuritySchemeDefinition, optional)
}
AuthorizationValue {
    value
(string, optional),
    type
(string, optional),
    keyName
(string, optional)
}
SecuritySchemeDefinition {
    description
(string, optional),
    type
(string, optional)
}

Many thanks,

Luca Natali

wing328

unread,
Jun 2, 2016, 5:58:49 AM6/2/16
to Swagger
Please open a ticket via https://github.com/swagger-api/swagger-codegen/issues with more info (e.g. language, etc)

William

Luca Natali於 2016年5月26日星期四 UTC+8下午9時47分00秒寫道:
Reply all
Reply to author
Forward
0 new messages