Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
items
items
items

GET items/:pid Retrieves information on the item

POST items/:pid Creates an item with :pid

PUTS items/:pid Updates an item 

JSON:

{mods: {mods converted to JSON}, collection: collection_id, derivatives: [location_of_derivatives], dark: [Boolean] }

GET returns the mods (or otherwise specified subset of metadata), POST requires everything to be able to create a new item, PUTS updates just the supplied JSON. 

Anchor
collections
collections
collections

GET collections/ Retrieves a list of all collections

GET collections/:pid Retrieves information on the collection

GET collections/:pid/items Retrieves a list of all items in collection :pid

POST collections/:pid Creates a collection

PUTS collections/:pid Updates a collection

 

 

 

CodeDescription
200

Okay

201

Created

202

Accepted, Queued

400

Bad request

401

Auth Failure

403

Forbidden

404

Resource Not Found

405

Method Prohibited

409

Conflict/Other Error

Conflict ex: pid in use

...