Skip to content
Snippets Groups Projects
Commit b88ac375 authored by Erik Reid's avatar Erik Reid
Browse files

fixed rst json-formatting

parent ff51e97d
No related branches found
No related tags found
No related merge requests found
......@@ -1375,10 +1375,13 @@ def _asn_peers(asn, group, instance):
This method returns a list of all peers filtered by `group` and `instance`,
which can be passed either as URL query parameters or as entries in a
POST request with a JSON body that matches this schema:
`{
"group": "group to filter by",
"instance": "instance to filter by"
}`
.. code-block:: json
{
"group": "group to filter by",
"instance": "instance to filter by"
}
Results are returned where all filters given are true, and exact string
matches.
......@@ -1393,7 +1396,7 @@ def _asn_peers(asn, group, instance):
:param asn: specific ASN to get peers for
:param group: group to filter by
:param instance: instance to filter by
:return:
:return: as above
"""
r = common.get_current_redis()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment