mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-01 07:21:17 +00:00
46 lines
1.0 KiB
Markdown
46 lines
1.0 KiB
Markdown
# Testing Flows
|
|
|
|
## Add to Favorites
|
|
|
|
Stars a song (or album/artist) using the Subsonic `star` endpoint.
|
|
|
|
**Request**
|
|
|
|
```
|
|
GET /rest/star
|
|
```
|
|
|
|
Query parameters:
|
|
|
|
| Parameter | Value | Description |
|
|
|-----------|-------|-------------|
|
|
| `u` | `admin` | Username |
|
|
| `t` | `47b1fbf1aaa6b36d0dec0c8ae0b1a6ef` | Auth token (MD5 of password + salt) |
|
|
| `s` | `701805` | Salt used to generate the token |
|
|
| `f` | `json` | Response format |
|
|
| `v` | `1.8.0` | Subsonic API version |
|
|
| `c` | `NavidromeUI` | Client name |
|
|
| `id` | `qORBlifrm7cjK4yDgfy5Zy` | ID of the song/album/artist to star |
|
|
|
|
**Example request (dev)**
|
|
|
|
```bash
|
|
curl "http://localhost:4533/rest/star?u=admin&t=47b1fbf1aaa6b36d0dec0c8ae0b1a6ef&s=701805&f=json&v=1.8.0&c=NavidromeUI&id=qORBlifrm7cjK4yDgfy5Zy"
|
|
```
|
|
|
|
**Response**
|
|
|
|
```json
|
|
{
|
|
"subsonic-response": {
|
|
"status": "ok",
|
|
"version": "1.16.1",
|
|
"type": "navidrome",
|
|
"serverVersion": "dev",
|
|
"openSubsonic": true
|
|
}
|
|
}
|
|
```
|
|
|
|
A `status: "ok"` with no error field means the item was successfully starred.
|