From 9e6cc8ed6b55d65ee4f1cb4f00ceb3369fb04969 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Mon, 19 Dec 2022 13:07:00 +0100 Subject: [PATCH] /stations: document application/x-ndjson representation; put todos --- routes/station.js | 1 + routes/stations.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/routes/station.js b/routes/station.js index dd9c473..c2b24b3 100644 --- a/routes/station.js +++ b/routes/station.js @@ -52,6 +52,7 @@ Returns a stop/station from [\`db-stations@3\`](https://github.com/derhuerst/db- }, }, }, + // todo: non-2xx response }, }, }, diff --git a/routes/stations.js b/routes/stations.js index 3f79bf5..c64a464 100644 --- a/routes/stations.js +++ b/routes/stations.js @@ -166,8 +166,14 @@ Instead of receiving a JSON response, you can request [newline-delimited JSON](h }, // todo: example(s) }, + 'application/x-ndjson': { + schema: { + type: 'string', + }, + }, }, }, + // todo: non-2xx response }, }, },