Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
A lightweight API for indexing metadata and links to existing derivatives into Avalon.  

...

If true, fields must include value for :bibliographic_id and may include value from controlled vocabulary for :bibliographic_id_label)
Bib import failure will result in a JSON response: {errors: ['Bib import failed', e.message]}, status: 422

replace_masterfiles (optional boolean):

...

Retrieves information on the specified collection

GET /admin/collections/:id/items.json

Retrieves a paginated list of all items in collection :pid the specified collection (parameters :page and :per_page specify page number and number per page for pagination)

...

CodeDescription
200

Okay. For GET, the relevant JSON will be contained in response body. For PUTS and POST response body will contain pid id of created/updated item.

201

<Not used> Created

202

<Not used> Accepted, Queued

400

<Not used> Bad request

401

Auth Failure. No token present in request header 'Avalon-Api-Key'

403

Forbidden. Invalid token in request header 'Avalon-Api-Key'

404

Resource Not Found. If object is not found for requested pidid.

405

<Not used> Method Prohibited

409

<Not used> Conflict/Other Error. Conflict ex: pid id in use

422Processing failed. Response body will contain JSON hash with :errors key pointing to a list of error message strings.

...