Skip to content

Commit

Permalink
Google SSO docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaclarke committed Aug 17, 2021
1 parent e52f75a commit d27789a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions conbench/api/_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def _201_created(example, schema=None):
spec.components.response("201", {"description": "Created"})
spec.components.response("202", {"description": "No Content (accepted)"})
spec.components.response("204", {"description": "No Content (success)"})
spec.components.response("302", {"description": "Found"})
spec.components.response("400", _error("Bad Request", ex.API_400, "ErrorBadRequest"))
spec.components.response("401", _error("Unauthorized", ex.API_401, "Error"))
spec.components.response("404", _error("Not Found", ex.API_404, "Error"))
Expand Down
18 changes: 18 additions & 0 deletions conbench/tests/api/_expected_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"201": {"description": "Created"},
"202": {"description": "No Content (accepted)"},
"204": {"description": "No Content (success)"},
"302": {"description": "Found"},
"400": {
"content": {
"application/json": {
Expand Down Expand Up @@ -1115,6 +1116,23 @@
}
},
"/api/docs.json": {},
"/api/google/": {
"get": {
"description": "Google SSO.",
"responses": {"302": {"$ref": "#/components/responses/302"}},
"tags": ["Authentication"],
}
},
"/api/google/callback": {
"get": {
"description": "Google SSO callback.",
"responses": {
"204": {"$ref": "#/components/responses/204"},
"400": {"$ref": "#/components/responses/400"},
},
"tags": ["Authentication"],
}
},
"/api/history/{benchmark_id}/": {
"get": {
"description": "Get benchmark history.",
Expand Down

0 comments on commit d27789a

Please sign in to comment.