AnsweredAssumed Answered

Get Key from the Swagger JSON document

Question asked by zovujadi on Oct 28, 2017

I'm trying to get the key name xxxx_auth  from a Swagger document. I need this name to extract values inside security definitions ($.securityDefinitions.xxxx_auth.scopes). How to get the key name?

{

.......

"securityDefinitions" : {
"xxxx_auth" : {
"type" : "oauth2",
"tokenUrl" : "http://localhost:8888/oauth2/token",
"flow" : "application",
"scopes" : {
"test.read" : "read access - grant to party/service registration data retrieval service",
"test.create" : "create access - grant the ability to create party/service registration data",
"test.delete" : "delete access - grant the ability to delete or remove to party/service registration data"
}
}
}

........

}

 

Thanks,

 

Zoran

Outcomes