public class RepositoryPublishResource extends Object
Constructor and Description |
---|
RepositoryPublishResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
writeFile(String pathId,
InputStream fileContents,
Boolean overwriteFile,
com.sun.jersey.core.header.FormDataContentDisposition fileInfo)
Publishes the file to the provided path in the repository.
|
public javax.ws.rs.core.Response writeFile(String pathId, InputStream fileContents, Boolean overwriteFile, com.sun.jersey.core.header.FormDataContentDisposition fileInfo)
Example Request:
POST pentaho/api/repo/publish/publishfile
pathId
- Colon separated path for the repository file.fileContents
- Input stream containing the data.overwriteFile
- Flag to determine whether to overwrite the existing file in the repository or not.fileInfo
- File information (Currently not being used).