description updates

This commit is contained in:
Luke Hagar
2023-04-10 09:46:23 -05:00
parent 390b07fda7
commit 6606a91d4b
3 changed files with 13 additions and 7 deletions

View File

@@ -3,7 +3,10 @@ get:
- Playlists
summary: Retrieve Playlist Contents
description: |
This endpoint will return the contents of a playlist
Gets the contents if a playlist. Should be paged by clients via standard mechanisms.
By default leaves are returned (e.g. episodes, movies). In order to return other types you can use the `type` parameter.
For example, you could use this to display a list of recently added albums vis a smart playlist.
Note that for dumb playlists, items have a `playlistItemID` attribute which is used for deleting or moving items.
operationId: getPlaylistContent
parameters:
- name: playlistID
@@ -29,7 +32,7 @@ delete:
- Playlists
summary: Delete Playlist Contents
description: |
This endpoint will clear the contents of a playlist
Clears a playlist, only works with dumb playlists. Returns the playlist.
operationId: clearPlaylistContent
parameters:
- name: playlistID

View File

@@ -3,7 +3,8 @@ get:
- Playlists
summary: Retrieve Playlist
description: |
This endpoint will return a playlist
Gets detailed metadata for a playlist. A playlist for many purposes (rating, editing metadata, tagging), can be treated like a regular metadata item:
Smart playlist details contain the `content` attribute. This is the content URI for the generator. This can then be parsed by a client to provide smart playlist editing.
operationId: getPlaylist
parameters:
- name: playlistID
@@ -21,7 +22,7 @@ get:
delete:
tags:
- Playlists
summary: Delete a Playlist
summary: Deletes a Playlist
description: |
This endpoint will delete a playlist
operationId: deletePlaylist
@@ -43,7 +44,7 @@ put:
- Playlists
summary: Update a Playlist
description: |
This endpoint will delete a playlist
From PMS version 1.9.1 clients can also edit playlist metadata using this endpoint as they would via `PUT /library/metadata/{playlistID}`
operationId: updatePlaylist
parameters:
- name: playlistID

View File

@@ -114,5 +114,7 @@ tags:
Hubs are a structured two-dimensional container for media, generally represented by multiple horizontal rows.
- name: Playlists
description: |
Playlists are ordered collections of media. They can be dumb (just a list of media) or smart (based on a media query, such as "all albums from 2017"). They can be organized in (optionally nesting) folders.
Retrieving a playlist, or its items, will trigger a refresh of its metadata. This may cause the duration and number of items to change.
Playlists are ordered collections of media. They can be dumb (just a list of media) or smart (based on a media query, such as "all albums from 2017").
They can be organized in (optionally nesting) folders.
Retrieving a playlist, or its items, will trigger a refresh of its metadata.
This may cause the duration and number of items to change.