API structure implies forbidden collection names #272

Open
opened 2026-10-02 05:42:11 +00:00 by mih · 0 comments
Owner

We have /<collection> as a top-level API path segment for many endpoints. But at the same time, there are a number of other/static top-level path segments for non-collection endpoints. For example:

  • /server
  • /maintenance
  • /tokens
  • /admin_tokens
  • /collections

This list is likely to grow and in competition with user-chosen collection names.

We should overhaul this concept. For example, it would make sense to me to fully separate any and all admin API endpoints with a dedicated /admin/ path prefix.

We have `/<collection>` as a top-level API path segment for many endpoints. But at the same time, there are a number of other/static top-level path segments for non-collection endpoints. For example: - /server - /maintenance - /tokens - /admin_tokens - /collections This list is likely to grow and in competition with user-chosen collection names. We should overhaul this concept. For example, it would make sense to me to fully separate any and all admin API endpoints with a dedicated `/admin/` path prefix.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
orinoco/dump-things-service#272
No description provided.