API repo - RapturePlatform/Rapture GitHub Wiki

Repo API

The Repo API is used to interact with documents in the system.

This api is deprecated: "The Repo API is being eliminated" ## getContent
HttpRepoApi repoApi = new HttpRepoApi(loginApi);
ContentEnvelope retVal = repoApi.getContent(raptureURI);
retVal = baseAPI.doRepo_GetContent(raptureURI);
This function is deprecated: "The Repo API is being eliminated"

Entitlement: /repo/getcontent

Retrieve the content given a documentURI

Function Parameters

Parameter Type Description
raptureURI String

Return value

Type Description
ContentEnvelope
Types used in this function

ContentEnvelope

Describes the content of a repository.

Field Type
headers Map(String, String)
content Object
contentType String
raptureURI String

putContent

HttpRepoApi repoApi = new HttpRepoApi(loginApi);
void retVal = repoApi.putContent(raptureURI, content, comment);
retVal = baseAPI.doRepo_PutContent(raptureURI, content, comment);
This function is deprecated: "The Repo API is being eliminated"

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

Function Parameters

Parameter Type Description
raptureURI String
content Object
comment String

Return value

Type Description
void

deleteContent

HttpRepoApi repoApi = new HttpRepoApi(loginApi);
void retVal = repoApi.deleteContent(raptureURI, comment);
retVal = baseAPI.doRepo_DeleteContent(raptureURI, comment);
This function is deprecated: "The Repo API is being eliminated"

Entitlement: /user/delete/$f(raptureURI)

Remove a document from the system.

Function Parameters

Parameter Type Description
raptureURI String
comment String

Return value

Type Description
void
⚠️ **GitHub.com Fallback** ⚠️