server/api + docs/api: organize responses

This commit is contained in:
rr-
2016-04-28 18:20:50 +02:00
parent 2b69e9b461
commit 0b20132a2f
16 changed files with 228 additions and 268 deletions

View File

@ -10,4 +10,4 @@ class SnapshotListApi(BaseApi):
def get(self, ctx):
auth.verify_privilege(ctx.user, 'snapshots:list')
return self._search_executor.execute_and_serialize(
ctx, snapshots.serialize_snapshot, 'snapshots')
ctx, snapshots.serialize_snapshot)