From 57038cf8935fa24a12f495faecfd05690ff3e8b5 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 1 Aug 2018 15:56:38 +0300 Subject: Fix: GET /foos actually returns ids --- qvisqve/management_router.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qvisqve/management_router.py b/qvisqve/management_router.py index 7ae04b0..6095d41 100644 --- a/qvisqve/management_router.py +++ b/qvisqve/management_router.py @@ -95,8 +95,8 @@ class ManagementEndpoint: def _list(self, content_type, body, **kwargs): qvisqve.log.log('info', msg_text='Listing', path=self._path) - # FIXME - return qvisqve.ok_response({"resources": []}) + entity_ids = list(self._entities.list()) + return qvisqve.ok_response({"resources": entity_ids}) def _show(self, content_type, body, **kwargs): qvisqve.log.log('info', msg_text='Showing client') -- cgit v1.2.1