docs(nav): add a User Guide Server section and move the Python API under Developer

This commit is contained in:
imSp4rky
2026-12-04 18:33:07 -07:00
parent d1b2395313
commit 34c8fabe6f
7 changed files with 40 additions and 37 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
This is the full endpoint reference for the unshackle REST API. It covers every route: its method and path, the request body it accepts, the response shape it returns, and the status codes it can give. This page groups the routes into general, download jobs, server management, remote sessions, and the remote services relay.
Start the server with [`unshackle serve`](../../guide/cli-reference.md). By default it binds to `127.0.0.1:8786`, and every route lives under the `/api/` prefix. The [Authentication](authentication.md) page gives authentication, server modes, and the `X-Secret-Key` header in detail. Read that first if you have not already. For an end-to-end walkthrough, see the [Quickstart](quickstart.md).
Start the server with [`unshackle serve`](../../guide/cli-reference.md). By default it binds to `127.0.0.1:8786`, and every route lives under the `/api/` prefix. The [Authentication](authentication.md) page gives authentication, server modes, and the `X-Secret-Key` header in detail. Read that first if you have not already. For an end-to-end walkthrough, see the [REST API Quick Start](quickstart.md).
!!! note "Base URL"
All examples below assume a base URL of `http://127.0.0.1:8786`. Replace the host and port so that they match your own `unshackle serve -h <host> -p <port>` invocation.
@@ -1016,7 +1016,7 @@ When a generic (uncategorized) exception reaches a handler, unshackle inspects i
## See also
- [REST API overview](index.md). What the server is and when to use it.
- [Server Overview](index.md). What the server is and when to use it.
- [Authentication](authentication.md). Keys, server modes, and the `X-Secret-Key` header.
- [Quickstart](quickstart.md). A first end-to-end request walkthrough.
- [REST API Quick Start](quickstart.md). A first end-to-end request walkthrough.
- [CLI reference: `dl`](../../guide/cli-reference.md#dl). The `dl` flags mirrored by `POST /api/download`.
+12 -13
View File
@@ -1,19 +1,18 @@
# REST API Overview
# Server Overview
unshackle ships with a built-in HTTP server. Alongside the command-line tool, you
can operate `unshackle serve` and drive the same download engine over a REST API:
searching services, listing titles and tracks, queueing downloads, watching live
progress, and browsing history, all as JSON over HTTP.
`unshackle serve` starts an HTTP server. The server can give the download engine of the
command-line tool as a REST API, and your CDM devices to other machines. The
[server modes](#server-modes) select which of the two it gives.
This page explains what the API is for, how to start the server, where it listens,
and how the endpoints are organised. Later pages cover each area in depth.
This page is for the operator of the server. The other pages of this section tell you how
to set the [API keys](authentication.md), how to watch the server from the
[dashboard](dashboard.md), and how a [`dl --remote` client](../../guide/remote-sessions.md)
connects to it.
!!! info "Who this section is for"
The REST API is for people who make automation, dashboards, or remote
clients on top of unshackle. If you only download the occasional title, the
[command-line tool](../../guide/cli-reference.md) does everything the API does
and is simpler to use. Reach for the API when you want a long-running service, a
job queue, or a web front-end.
!!! info "Pages for client developers"
To write a client for the REST API, start with the [REST API Quick Start](quickstart.md).
[Where to go next](#where-to-go-next) lists the other client pages. To download a title,
you do not need the server: the [command-line tool](../../guide/cli-reference.md) is simpler.
## What the API is for