OriginalPublisherLibraryRelationshipResource Resource

GET /originalpublisherlibraryrelationships

Returns all relationships between original publishers and libraries optionally filtered by one or more available filtering options.

Request Parameters
name type description
originalPublisherLibraryRelationshipIds query a String holding one or more ids (separated by comma) for which corresponding relationship is to be returned.
Response Codes
code condition
200 One or more relationships was returned.
500 An error occured.
Response Body
media type data type description
application/xml;charset=utf-8 (custom) zero or more SerialOriginalPublisherLibraryRelationship.

Example

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

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

                
...
                
              

POST /originalpublisherlibraryrelationships

Creates a relationship between an original publisher and a library. 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 MTOriginalPublisherLibraryRelationship (XML) the SerialOriginalPublisherLibraryRelationship which is to be created.
Response Codes
code condition
200 The relationship was created.
500 An error occured.
Response Body
media type data type description
application/xml;charset=utf-8 (custom) the created SerialOriginalPublisherLibraryRelationship.

Example

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

                
<originalPublisherLibraryRelationship>
  <id>...</id>
  <library>
    <code>...</code>
    <country>...</country>
    <id>...</id>
    <name>...</name>
    <owner>
      <name>...</name>
      <id>...</id>
      <updated>...</updated>
    </owner>
    <status>...</status>
    <updated>...</updated>
  </library>
  <originalPublisher>
    <id>...</id>
    <ipi>...</ipi>
    <originalPublisherLibraryRelationships>
      <originalPublisherLibraryRelationship/>
    </originalPublisherLibraryRelationships>
    <name>...</name>
    <society>
      <name>...</name>
      <id>...</id>
      <updated>...</updated>
    </society>
    <updated>...</updated>
  </originalPublisher>
  <updated>...</updated>
</originalPublisherLibraryRelationship>

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

                
...
                
              

DELETE /originalpublisherlibraryrelationships/{originalPublisherLibraryRelationshipId}

Deletes a relationship between and original publisher and a library.

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

Example

Request
DELETE /originalpublisherlibraryrelationships/{originalPublisherLibraryRelationshipId}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content

              

PUT /originalpublisherlibraryrelationships/{originalPublisherLibraryRelationshipId}

Updates a relationship between an original publisher and a library.

Request Parameters
name type description
originalPublisherLibraryRelationshipId path a String holding an id which represents the relationship which is to be updated.
Request Body
media type data type description
application/xml MTOriginalPublisherLibraryRelationship (XML) the SerialOriginalPublisherLibraryRelationship which is to be updated.
Response Codes
code condition
200 The relationship was updated.
400 The resource ID does not match the payload ID.
404 The relationship does not exist.
409 The relationship 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 SerialOriginalPublisherLibraryRelationship.

Example

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

                
<originalPublisherLibraryRelationship>
  <id>...</id>
  <library>
    <code>...</code>
    <country>...</country>
    <id>...</id>
    <name>...</name>
    <owner>
      <name>...</name>
      <id>...</id>
      <updated>...</updated>
    </owner>
    <status>...</status>
    <updated>...</updated>
  </library>
  <originalPublisher>
    <id>...</id>
    <ipi>...</ipi>
    <originalPublisherLibraryRelationships>
      <originalPublisherLibraryRelationship/>
    </originalPublisherLibraryRelationships>
    <name>...</name>
    <society>
      <name>...</name>
      <id>...</id>
      <updated>...</updated>
    </society>
    <updated>...</updated>
  </originalPublisher>
  <updated>...</updated>
</originalPublisherLibraryRelationship>

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

                
...