LibraryOwnerResource Resource

GET /libraryowners

Returns all library owners optionally filtered by one or more available filtering options.

Request Parameters
name type description
libraryOwnerIds query a String holding one or more ids (separated by comma) for which corresponding library owners are to be returned.
Response Codes
code condition
200 The track for the provided library owner id was returned.
404 The provided library owner id does not correspond to an available library owner.
500 An error occured.
Response Body
media type data type description
application/xml;charset=utf-8 (custom) zero or more SerialLibraryOwner.

Example

Request
GET /libraryowners
Content-Type: */*
Accept: application/xml;charset=utf-8

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/xml;charset=utf-8

                
...
                
              

POST /libraryowners

Creates a library owner. Regardless of the provided state of the fields id and updated, these fields will be automatically populated upon creation.

Request Body
media type data type description
application/xml MTLibraryOwner (XML) the SerialLibraryOwner which is to be created.
Response Codes
code condition
200 The library owner was created.
500 An error occured.
Response Body
media type data type description
application/xml;charset=utf-8 (custom) the created SerialLibraryOwner.

Example

Request
POST /libraryowners
Content-Type: application/xml
Accept: application/xml;charset=utf-8

                
<libraryOwner>
  <name>...</name>
  <id>...</id>
  <updated>...</updated>
</libraryOwner>

                
              
Response
HTTP/1.1 200 OK
Content-Type: application/xml;charset=utf-8

                
...
                
              

DELETE /libraryowners/{libraryOwnerId}

Deletes a library owner.

Request Parameters
name type description
libraryOwnerId path a String holding an id which represents the library owner which is to be deleted.
Response Codes
code condition
204 The library owner was deleted.
404 The library owner does not exist.
500 An error occured.

Example

Request
DELETE /libraryowners/{libraryOwnerId}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

PUT /libraryowners/{libraryOwnerId}

Updates a library owner.

Request Parameters
name type description
libraryOwnerId path a String holding an id which represents the library owner which is to be updated.
Request Body
media type data type description
application/xml MTLibraryOwner (XML) the SerialLibraryOwner which is to be updated.
Response Codes
code condition
200 The library owner was updated.
400 The resource ID does not match the payload ID.
404 The library owner does not exist.
409 The library owner has been updated or deleted by another process.
500 An error occured.
Response Body
media type data type description
application/xml;charset=utf-8 (custom) the updated SerialLibraryOwner.

Example

Request
PUT /libraryowners/{libraryOwnerId}
Content-Type: application/xml
Accept: application/xml;charset=utf-8

                
<libraryOwner>
  <name>...</name>
  <id>...</id>
  <updated>...</updated>
</libraryOwner>

                
              
Response
HTTP/1.1 200 OK
Content-Type: application/xml;charset=utf-8

                
...