Page tree

Versions Compared

Key

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

...

Version
Date
Description
0.1
13 October 2015
Initial Draft

Table of Contents 

Anchor
itemsmediaobjectsitems
mediaobjects
itemsmediaobjects

GET items/:pid Retrieves information on the itemmedia object

POST items/ Creates an itemmedia object

PUTS items/:pid Updates an item media object

JSON:

{mods: {mods converted to JSON}, collection: collection_id, derivatives: [location_of_derivatives], private: <Boolean, default=false> }

GET returns the mods (or otherwise specified subset of metadata), POST requires everything to be able to create a new itemmedia object, PUTS updates just the supplied JSON.  POST and PUT fail if there is not: mods, a unique pid for the object, valid collection_id, mods, and derivatives.  If private is not specified, it is assumed to be public.  

Anchor
collections
collections
admin/collections

GET admin/collections/ Retrieves a list of all collections

GET admin/collections/:pid Retrieves information on the collection

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

POST admin/collections/ Creates a collection

PUTS admin/collections/:pid Updates a collection

...