Versions Compared

Key

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

...

Description

NXQL string

DB string

API query string

Required

is object record deleted?

CSpace specific flag

misc.lifestylestate <> 'deleted'

&wf_deleted=false

Y

sort by

CSpace specific flag

ORDER BY collectionspace_core.updatedat

?sortBy=collectionspace_core:updatedAt

N

Query construction

...

Using short ID in place of CSIDs

Foreknowledge of the parent authority ID CSID is no longer necessary. Only the name short ID of the parent authority needs be known, which for MMI is the default person authority. The personauthority service will accept either the CSID or the authority name in the string format urn:cspace:name(person). Likewise, the CSID of the person authority record can be replaced with the short ID of that record.

The URL structure is formatted as such can be formatted with CSIDs

Code Block
http://cspacetest.collectionspace.org:8180/cspace-services/personauthorities/acc60b93-3a09-47eb-bd8f/items?as=f23e6629-53e1-4021-82be-58e70f34e0fc/

or with short IDs

Code Block
http://cspacetest.collectionspace.org:8180/cspace-services/personauthorities/urn:cspace:name(person)/items?as=

...

urn:cspace:name(oc2584)

Get cataloging records referencing a specific person authority record

...