Skip to content

Commit

Permalink
Added security definitions for google oauth2.
Browse files Browse the repository at this point in the history
Updated yaml.
  • Loading branch information
jcarey committed Sep 10, 2015
1 parent 02278c7 commit 89b9484
Show file tree
Hide file tree
Showing 2 changed files with 305 additions and 89 deletions.
146 changes: 143 additions & 3 deletions src/main/resources/swagger/agora.json
Expand Up @@ -105,7 +105,13 @@
"$ref": "#/definitions/Error"
}
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
},
"post": {
"summary": "Add a Method.",
Expand Down Expand Up @@ -149,7 +155,13 @@
"$ref": "#/definitions/Error"
}
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
}
},
"/methods/{namespace}/{name}/{snapshotId}": {
Expand Down Expand Up @@ -202,7 +214,12 @@
"$ref": "#/definitions/Error"
}
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
},
"delete": {
"summary": "Redact a single method.",
Expand Down Expand Up @@ -344,7 +361,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
},
"post": {
"summary": "Add a Method.",
Expand Down Expand Up @@ -388,7 +411,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
}
},
"/configurations/{namespace}/{name}/{snapshotId}": {
Expand Down Expand Up @@ -437,6 +466,11 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
},
"delete": {
Expand Down Expand Up @@ -516,7 +550,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
},
"post": {
"summary": "Add a permissions on namespace.",
Expand Down Expand Up @@ -560,7 +600,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
},
"put": {
"summary": "Edit a permissions on namespace.",
Expand Down Expand Up @@ -604,7 +650,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
},
"delete": {
"summary": "Delete a permission on namespace.",
Expand Down Expand Up @@ -641,7 +693,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
}
},
"/methods/{namespace}/{name}/{snapshotId}/permissions": {
Expand Down Expand Up @@ -690,7 +748,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
},
"post": {
"summary": "Add a permissions on a specific method.",
Expand Down Expand Up @@ -748,7 +812,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
},
"put": {
"summary": "Edit a permissions on a specific method.",
Expand Down Expand Up @@ -806,7 +876,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
},
"delete": {
"summary": "Delete a permission on a specific method.",
Expand Down Expand Up @@ -857,7 +933,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
}
},
"/configurations/{namespace}/permissions": {
Expand Down Expand Up @@ -892,7 +974,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
},
"post": {
"summary": "Add a permissions on namespace.",
Expand Down Expand Up @@ -936,7 +1024,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
},
"put": {
"summary": "Edit a permissions on namespace.",
Expand Down Expand Up @@ -980,7 +1074,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
},
"delete": {
"summary": "Delete a permission on namespace.",
Expand Down Expand Up @@ -1017,7 +1117,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
}
},
"/configurations/{namespace}/{name}/{snapshotId}/permissions": {
Expand Down Expand Up @@ -1066,7 +1172,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
},
"post": {
"summary": "Add a permissions on a specific method.",
Expand Down Expand Up @@ -1124,7 +1236,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
},
"put": {
"summary": "Edit a permissions on a specific method.",
Expand Down Expand Up @@ -1182,7 +1300,13 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
},
"delete": {
"summary": "Delete a permission on a specific method.",
Expand Down Expand Up @@ -1233,7 +1357,23 @@
"$ref": "#/definitions/Error"
}
}
},
"security":[
{
"agora_auth":
["openid"]
}
]
}
}
},
"securityDefinitions":{
"agora_auth":{
"type":"oauth2",
"authorizationUrl":"https://accounts.google.com/o/oauth2/auth",
"flow":"implicit",
"scopes":{
"openid":"authorized for all"
}
}
},
Expand Down

0 comments on commit 89b9484

Please sign in to comment.