Skip to content

Commit 2ab06e2

Browse files
authored
[ci skip] Use forward slashes
1 parent 91b247d commit 2ab06e2

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

api/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@ All the endpoints will respond with `200` if successful or:
1010
- `503`, if the session is reconnecting (`Retry-After` is always 10 seconds)
1111

1212
### Player
13-
- `POST \player\load` Load a track from a given URI. The request body should contain two parameters: `uri` and `play`.
14-
- `POST \player\pause` Pause playback.
15-
- `POST \player\resume` Resume playback.
16-
- `POST \player\next` Skip to next track.
17-
- `POST \player\prev` Skip to previous track.
18-
- `POST \player\set-volume` Set volume to a given `volume` value from 0 to 65536.
19-
- `POST \player\volume-up` Up the volume a little bit.
20-
- `POST \player\volume-down` Lower the volume a little bit.
21-
- `POST \player\current` Retrieve information about the current track (metadata and time).
13+
- `POST /player/load` Load a track from a given URI. The request body should contain two parameters: `uri` and `play`.
14+
- `POST /player/pause` Pause playback.
15+
- `POST /player/resume` Resume playback.
16+
- `POST /player/next` Skip to next track.
17+
- `POST /player/prev` Skip to previous track.
18+
- `POST /player/set-volume` Set volume to a given `volume` value from 0 to 65536.
19+
- `POST /player/volume-up` Up the volume a little bit.
20+
- `POST /player/volume-down` Lower the volume a little bit.
21+
- `POST /player/current` Retrieve information about the current track (metadata and time).
2222

2323
### Metadata
24-
- `POST \metadata\{type}\{uri}` Retrieve metadata. `type` can be one of `episode`, `track`, `album`, `show`, `artist` or `playlist`, `uri` is the standard Spotify uri.
25-
- `POST \metadata\{uri}` Retrieve metadata. `uri` is the standard Spotify uri, the type will be guessed based on the provided uri.
24+
- `POST /metadata/{type}/{uri}` Retrieve metadata. `type` can be one of `episode`, `track`, `album`, `show`, `artist` or `playlist`, `uri` is the standard Spotify uri.
25+
- `POST /metadata/{uri}` Retrieve metadata. `uri` is the standard Spotify uri, the type will be guessed based on the provided uri.
2626

2727
### Search
28-
- `POST \search\{query}` Make a search.
28+
- `POST /search/{query}` Make a search.
2929

3030
### Tokens
31-
- `POST \token\{scope}` Request an access token for a specific scope (or a comma separated list of scopes).
31+
- `POST /token/{scope}` Request an access token for a specific scope (or a comma separated list of scopes).
3232

3333
### Events
3434
You can subscribe for players events by creating a WebSocket connection to `/events`.

0 commit comments

Comments
 (0)