Forum

Browse topics, discover Works With Legrand community!

Add Oauth to swagger export

Dear,

would it be possible to add the Oauth2 security components to the OpenAPI definition?

This will help generating clients with swagger codegen.

https://portal.developer.legrand.com/docs/services/smartherV2/export?DocumentFormat=Swagger

“apiKeyQuery”: {
“type”: “apiKey”,
“name”: “subscription-key”,
“in”: “query”
},
“oauth”: {
“type”: “oauth2”,
“authorizationUrl”: “https://partners-login.eliotbylegrand.com/authorize”,
“tokenUrl”: “https://partners-login.eliotbylegrand.com/token”,
“flow”: “accessCode”
}
},
“security”: [
{
“apiKeyHeader”: []
},
{
“oauth”: []
}
],

Hi,

Very good idea !

We’ll see to put it in the development backlog and we keep you informed when it’s done

Have a good day,

Leslie – Community Manager

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.