From 68bc86cca9a32daec32da65808dd929827a3e178 Mon Sep 17 00:00:00 2001 From: gravel Date: Thu, 1 Jun 2023 18:17:46 +0000 Subject: [PATCH] Serve listings as array instead --- PROTOCOL.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/PROTOCOL.md b/PROTOCOL.md index e77160f..8306d42 100644 --- a/PROTOCOL.md +++ b/PROTOCOL.md @@ -107,28 +107,33 @@ Example response: ```json { - listings: { - "tech": { + listings: [ + { + id: "tech", name: "Tech Communities", rooms: 5 }, - "privsec": { + { + id: "privsec", name: "Privacy & Security", rooms: 4 }, - "casual": { + { + id: "casual", name: "Casual Communities", rooms: 3 }, - "nsfw": { + { + id: "nsfw", name: "18+ Communities", rooms: 3 } - "all": { + { + id: "all" name: "All Communities", rooms: 10 } - } + ] } ``` @@ -140,4 +145,3 @@ Error responses: - `404 Not Found` - Returned if the given listing does not exist. - \ No newline at end of file