From b88ac3756aad0b2337a665eaae90597e7b2672a8 Mon Sep 17 00:00:00 2001 From: Erik Reid <erik.reid@geant.org> Date: Tue, 8 Nov 2022 15:23:06 +0100 Subject: [PATCH] fixed rst json-formatting --- inventory_provider/routes/msr.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/inventory_provider/routes/msr.py b/inventory_provider/routes/msr.py index 94f38b73..fe83817d 100644 --- a/inventory_provider/routes/msr.py +++ b/inventory_provider/routes/msr.py @@ -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() -- GitLab