Div | ||
---|---|---|
| ||
Relationship Service Home |
Brief Description
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Assumptions
For a complete list of assumptions, visit the Service Description and Assumptions page.
References
Relationship Requirements
Relationship Stories
Relationship Service Description and Assumptions
Relationship Service Entity Diagrams
REST-based APIs - A Template for Services
REST-based API
The Relationship Service offers a REST-based Application Programming Interface (API) to CRUD (create, read, update, and delete) operations on individual Relationship instances, plus list operations on multiple Relationship instances. These follow the Common model for CollectionSpace REST services.
...
Creates a new Relationship record. Assigns a unique, service-specified CollectionSpace ID (CSID) /wiki/spaces/collectionspace/pages/666274321 to that Relationship record. Follows standard Create model. See the documentation of the Relationship schema, below. Example:
...
Reads an existing Relationship record, specified by its CollectionSpace ID (CSID) /wiki/spaces/collectionspace/pages/666274321. Follows standard Read model. See the documentation of the Relationship schema, below. Example:
...
Updates an existing Relationship record, specified by its CollectionSpace ID (CSID) /wiki/spaces/collectionspace/pages/666274321. Follows standard Update model. See the documentation of the Relationship schema, below. Example:
...
Deletes an existing Relationship record, specified by its CollectionSpace ID (CSID) /wiki/spaces/collectionspace/pages/666274321. Follows standard Delete model. Example:
...
Code Block |
---|
GET /cspace-services/relations/urn:cspace:name({shortId})/items?pgSz=10 HTTP/1.1
|
List also supports query parameters for searching for matching records, including keyword search. For example:
Code Block |
---|
GET /cspace-services/relations/urn:cspace:name({shortId})/items/?kw=foo&pgSz=10 HTTP/1.1
|
Finally, List also supports a special set of query parameters, specific to the Relationship service:
...