Merge pull request #676 from tobyh/api-prev-pr

Fix API documentation for player/previous endpoint
This commit is contained in:
Christian Meffert 2019-01-27 10:45:57 +01:00 committed by GitHub
commit 8e7105007b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ JSON-Object model:
| --------- | ------------------------------------------------ | ------------------------------------ | | --------- | ------------------------------------------------ | ------------------------------------ |
| GET | [/api/player](#get-player-status) | Get player status | | GET | [/api/player](#get-player-status) | Get player status |
| PUT | [/api/player/play, /api/player/pause, /api/player/stop, /api/player/toggle](#control-playback) | Start, pause or stop playback | | PUT | [/api/player/play, /api/player/pause, /api/player/stop, /api/player/toggle](#control-playback) | Start, pause or stop playback |
| PUT | [/api/player/next, /api/player/prev](#skip-tracks) | Skip forward or backward | | PUT | [/api/player/next, /api/player/previous](#skip-tracks) | Skip forward or backward |
| PUT | [/api/player/shuffle](#set-shuffle-mode) | Set shuffle mode | | PUT | [/api/player/shuffle](#set-shuffle-mode) | Set shuffle mode |
| PUT | [/api/player/consume](#set-consume-mode) | Set consume mode | | PUT | [/api/player/consume](#set-consume-mode) | Set consume mode |
| PUT | [/api/player/repeat](#set-repeat-mode) | Set repeat mode | | PUT | [/api/player/repeat](#set-repeat-mode) | Set repeat mode |
@ -131,7 +131,7 @@ PUT /api/player/next
``` ```
```http ```http
PUT /api/player/prev PUT /api/player/previous
``` ```
**Response** **Response**
@ -145,7 +145,7 @@ curl -X PUT "http://localhost:3689/api/player/next"
``` ```
```shell ```shell
curl -X PUT "http://localhost:3689/api/player/prev" curl -X PUT "http://localhost:3689/api/player/previous"
``` ```