docs: Define the role of the API (#40382)

As per TOC decision, the UI is the ultimate source of truth.
The API is only secondary in nature.

---------

Signed-off-by: delvh <dev.lh@web.de>
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
This commit is contained in:
delvhandTheFox0x7 authored and GitHub committed 2026-11-23 18:37:34 +00:00
1 parent 8b1b80bbf2
commit 021f56854c
1 file changed
+5
+5
View File
@@ -168,6 +168,11 @@ In general, choose HTTP methods as follows:
### Requirements for API routes
- API routes may not be more powerful than the web UI.
If an action is not possible from the UI, it cannot be an API route
Such PRs will be rejected until the functionality exists in the UI
This rule does not apply to features which are meant to be used via automated means only such as:
packages which have their own tooling to upload, endpoints that are used by external tools only
- All parameters of endpoints that edit an object must be optional, except those
needed to identify the object, which are required.
- Endpoints returning lists must support pagination (`page` and `limit` query