-
Notifications
You must be signed in to change notification settings - Fork 1
API Documentation
Mount Point: /repositories
Register a new Repository
element: | profileString |
media types: | application/json |
profileString is a json profile document for the new repository.
element: | (custom) |
media types: | application/json |
201: {orgidentifier: <repository_identifier>}
400 Bad Request: {response: "Failure", reason : <string>}
409 Conflict: {response: "Failure", reason : <string>}
Return the list of repositories
element: | (custom) |
media types: | application/json |
[
{
"orgidentifier":<repository_id>,
"repositoryUrl":<repository_url>,
"repositoryName":<repo_name>,
"lastUpdate":<profile update date>
}
]
Mount Point: /repositories/{id}
The following operations are supported on this resource:
Return the profile for a given repository
name | description | type | default |
---|---|---|---|
id | the assigned repository ID | path |
element: | (custom) |
media types: | application/json |
200 OK: {"orgidentifier":<repository_id>, "repositoryUrl":<repository_url>,... }
404 Not Found: {failure : <string>}
Update the profile for a given repository. The orgidentifier element in the new profile must exist and must match the {id} being PUT.
name | description | type | default |
---|---|---|---|
id | the assigned repository ID | path |
element: | profile |
media types: | application/json |
(no documentation provided)
element: | (custom) |
media types: | */* application/xml application/json |
200 OK: {response : <string>}
404 Not Found: {failure : <string>}
Unregister a repository and remove its profile
name | description | type | default |
---|---|---|---|
id | the assigned repository ID | path |
element: | (custom) |
media types: | */* application/xml application/json |
200 OK: {response : <string>}
404 Not Found: {failure : <string>}
Mount Point: /repositories/{id}/researchobjects
Return the set of ROs for a given repository
name | description | type | default |
---|---|---|---|
id | (no documentation provided) | path | |
Purpose | filter by the purpose flag of the research object; the values for the 'purpose' can be 'Production' or 'Testing-Only' | query |
element: | (custom) |
media types: | application/json |
An array of JSON objects that include the Identifier and Title of the Aggregation, the Repository id, and the list of Status messages
Mount Point: /repositories/{id}/researchobjects/new
Return the set of new ROs for a given repository (those that have no status messages from the repository associated with them).
name | description | type | default |
---|---|---|---|
id | (no documentation provided) | path | |
Purpose | filter by the purpose flag of the research object; the values for the 'purpose' can be 'Production' or 'Testing-Only' | query |
element: | (custom) |
media types: | application/json |
An array of JSON objects that include the Identifier and Title of the Aggregation, the Repository id, and the list of Status messages (e.g. those from sead-cpr itself)