API repo - RapturePlatform/Rapture GitHub Wiki
The Repo API is used to interact with documents in the system.
This api is deprecated: "The Repo API is being eliminated" ## getContentHttpRepoApi repoApi = new HttpRepoApi(loginApi);
ContentEnvelope retVal = repoApi.getContent(raptureURI);
retVal = baseAPI.doRepo_GetContent(raptureURI);
Entitlement: /repo/getcontent
Retrieve the content given a documentURI
Parameter | Type | Description |
---|---|---|
raptureURI | String |
Type | Description |
---|---|
ContentEnvelope |
Describes the content of a repository.
Field | Type |
---|---|
headers | Map(String, String) |
content | Object |
contentType | String |
raptureURI | String |
HttpRepoApi repoApi = new HttpRepoApi(loginApi);
void retVal = repoApi.putContent(raptureURI, content, comment);
retVal = baseAPI.doRepo_PutContent(raptureURI, content, comment);
Entitlement: /repo/putcontent
Store the content supplied at the document URI given. Existing content will be overwritten at this URI, but the previous version may be stored if the underlying repository supports it
Parameter | Type | Description |
---|---|---|
raptureURI | String | |
content | Object | |
comment | String |
Type | Description |
---|---|
void |
HttpRepoApi repoApi = new HttpRepoApi(loginApi);
void retVal = repoApi.deleteContent(raptureURI, comment);
retVal = baseAPI.doRepo_DeleteContent(raptureURI, comment);
Entitlement: /user/delete/$f(raptureURI)
Remove a document from the system.
Parameter | Type | Description |
---|---|---|
raptureURI | String | |
comment | String |
Type | Description |
---|---|
void |