Norsk

Ingen beskrivelse i spesifikasjonen.

8 operasjoner
POST /patron/{patronId}/list CreatePatronList

Create a new patron list

Create a new patron list, the list id is determined by the id in the request. If there exist no patron list with the default ID, the default list can be created.

Parametere

patronIdpåkrevd
path · stringPatron ID from authentication
Felles for operasjonene: version. Se den felles kontrakten på versjonssiden.

Request body

application/json · påkrevd

CreatePatronListRequestBody

Svar

  • 204 Ikke noe innhold i svaret. Success
Feilsvar: 400 · 401 · 404 — Se den felles kontrakten på versjonssiden.
POST /patron/{patronId}/list/{listId} InsertItemToPatronList

Insert an item to a patron list

Insert an item anywhere into the patron list.

Parametere

patronIdpåkrevd
path · stringPatron ID from authentication
listIdpåkrevd
path · stringPatron list ID
position
query · integerUsed to decide where to insert the item, zero based. Default value is 0. If position is greater than the number of items in the list, the item will be added to the end of the list. If position is less than zero, the item will be added to the front of the list. If an item already exists at the position, the new item will be inserted before (at the specified position), and the existing item will be shifted one position down the list.
Felles for operasjonene: version. Se den felles kontrakten på versjonssiden.

Request body

application/json · påkrevd

AddItemToPatronListRequestBody

Svar

  • 204 Ikke noe innhold i svaret. Success
Feilsvar: 400 · 401 · 404 — Se den felles kontrakten på versjonssiden.
DELETE /patron/{patronId}/list/{listId}/item/{itemId} DeletePatronListItem

Delete item from a patron list

Parametere

patronIdpåkrevd
path · stringPatron ID from authentication
listIdpåkrevd
path · stringPatron list ID
itemIdpåkrevd
path · stringItem ID from a patron list
Felles for operasjonene: version. Se den felles kontrakten på versjonssiden.

Svar

  • 204 Ikke noe innhold i svaret. Success
Feilsvar: 400 · 401 · 404 — Se den felles kontrakten på versjonssiden.
PATCH /patron/{patronId}/list/{listId}/item/{itemId} MovePatronListItem

Move item position on patron list

This moves the item to the specified position on the patron list, the same rules applies here as when inserting an item to a patron list (POST /patron/{patronId}/list/{listId}).

Parametere

patronIdpåkrevd
path · stringPatron ID from authentication
listIdpåkrevd
path · stringPatron list ID
itemIdpåkrevd
path · stringItem ID from a patron list
positionpåkrevd
query · integerUsed to decide where to move an item to, zero based.
Felles for operasjonene: version. Se den felles kontrakten på versjonssiden.

Svar

  • 204 Ikke noe innhold i svaret. Success
Feilsvar: 400 · 401 · 404 — Se den felles kontrakten på versjonssiden.