Fix AuthorityVisualizations
This commit is contained in:
parent
24c1415983
commit
5f2e32ff92
|
@ -493,23 +493,48 @@ class CertificateAuthority(AuthenticatedResource):
|
||||||
class AuthorityVisualizations(AuthenticatedResource):
|
class AuthorityVisualizations(AuthenticatedResource):
|
||||||
def get(self, authority_id):
|
def get(self, authority_id):
|
||||||
"""
|
"""
|
||||||
{"name": "flare",
|
.. http:get:: /authorities/1/visualize
|
||||||
"children": [
|
|
||||||
{
|
Authority visualization
|
||||||
"name": "analytics",
|
|
||||||
"children": [
|
**Example request**:
|
||||||
{
|
|
||||||
"name": "cluster",
|
.. sourcecode:: http
|
||||||
"children": [
|
|
||||||
{"name": "AgglomerativeCluster", "size": 3938},
|
GET /certificates/1/visualize HTTP/1.1
|
||||||
{"name": "CommunityStructure", "size": 3812},
|
Host: example.com
|
||||||
{"name": "HierarchicalCluster", "size": 6714},
|
Accept: application/json, text/javascript
|
||||||
{"name": "MergeEdge", "size": 743}
|
|
||||||
]
|
**Example response**:
|
||||||
}
|
|
||||||
]
|
.. sourcecode:: http
|
||||||
}
|
|
||||||
]}
|
HTTP/1.1 200 OK
|
||||||
|
Vary: Accept
|
||||||
|
Content-Type: text/javascript
|
||||||
|
|
||||||
|
{"name": "flare",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"name": "analytics",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"name": "cluster",
|
||||||
|
"children": [
|
||||||
|
{"name": "AgglomerativeCluster", "size": 3938},
|
||||||
|
{"name": "CommunityStructure", "size": 3812},
|
||||||
|
{"name": "HierarchicalCluster", "size": 6714},
|
||||||
|
{"name": "MergeEdge", "size": 743}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
:reqheader Authorization: OAuth token to authenticate
|
||||||
|
:statuscode 200: no error
|
||||||
|
:statuscode 403: unauthenticated
|
||||||
"""
|
"""
|
||||||
authority = service.get(authority_id)
|
authority = service.get(authority_id)
|
||||||
return dict(
|
return dict(
|
||||||
|
|
Loading…
Reference in New Issue