...
- Get the relevant "projectId" and "workspaceId" for the workspace to which you want to upload the text.
- Insert the "projectId" and "workspaceId" in the placeholders in the above specified url.
- Go to "pom.xml" of Quadriga and search for the tag "textfiles.location". Make sure that appropriate local path of the directory(which will contain the uploaded text) is given as value for that tag.
- You will be uploading text by sending XML in the body of request. It must contain the following tags
<text> - It contains the text which we are uploading
<handle> - It contains the uri from where text is taken
<file_name> - It contains the name of the text file which are uploading
<accessibility> - It contains the information about the visibility of the file. It
It's value can only be either "PUBLIC" or "PRIVATE".
sample input file ("InputText.xml") is provided for reference. - When the upload is successful, xml is sent as response.
sample output file ("TextUploadResponse.xml") is sent as response.
...