public interface FileResource
Modifier and Type | Field and Description |
---|---|
static String |
ACCEPTED_TYPES_RESOURCE |
static String |
DOWNLOAD_TEMPLATE |
static String |
FILE_DOWNLOAD_TEMPLATE |
static String |
FILE_RESOURCE |
static String |
FILETYPE_RAW_SOURCE_DOCUMENT
Specifies to download the original source file that was uploaded, byte-for-byte.
|
static String |
FILETYPE_TRANSLATED_APPROVED
Specifies to download a completed version of a translated document in the
original source format, showing only approved translations.
|
static String |
FILETYPE_TRANSLATED_APPROVED_AND_FUZZY
Specifies to download a preview of the translated document in the original
source format, showing all non-empty translations (even if not approved).
|
static String |
SOURCE_DOWNLOAD_TEMPLATE |
static String |
SOURCE_UPLOAD_TEMPLATE |
static String |
TRANSLATION_UPLOAD_TEMPLATE |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
acceptedFileTypes() |
javax.ws.rs.core.Response |
download(String downloadId) |
javax.ws.rs.core.Response |
downloadSourceFile(String projectSlug,
String iterationSlug,
String fileType,
String docId) |
javax.ws.rs.core.Response |
downloadTranslationFile(String projectSlug,
String iterationSlug,
String locale,
String fileExtension,
String docId) |
javax.ws.rs.core.Response |
uploadSourceFile(String projectSlug,
String iterationSlug,
String docId,
DocumentFileUploadForm uploadForm) |
javax.ws.rs.core.Response |
uploadTranslationFile(String projectSlug,
String iterationSlug,
String localeId,
String docId,
String merge,
DocumentFileUploadForm uploadForm) |
static final String FILE_RESOURCE
static final String ACCEPTED_TYPES_RESOURCE
static final String DOWNLOAD_TEMPLATE
static final String FILE_DOWNLOAD_TEMPLATE
static final String TRANSLATION_UPLOAD_TEMPLATE
static final String SOURCE_UPLOAD_TEMPLATE
static final String SOURCE_DOWNLOAD_TEMPLATE
static final String FILETYPE_RAW_SOURCE_DOCUMENT
static final String FILETYPE_TRANSLATED_APPROVED_AND_FUZZY
static final String FILETYPE_TRANSLATED_APPROVED
@GET @Path(value="/accepted_types") @Produces(value="text/plain") javax.ws.rs.core.Response acceptedFileTypes()
@POST @Path(value="/source/{projectSlug}/{iterationSlug}") @Consumes(value="multipart/form-data") javax.ws.rs.core.Response uploadSourceFile(@PathParam(value="projectSlug") String projectSlug, @PathParam(value="iterationSlug") String iterationSlug, @QueryParam(value="docId") String docId, DocumentFileUploadForm uploadForm)
@POST @Path(value="/translation/{projectSlug}/{iterationSlug}/{locale}") @Consumes(value="multipart/form-data") javax.ws.rs.core.Response uploadTranslationFile(@PathParam(value="projectSlug") String projectSlug, @PathParam(value="iterationSlug") String iterationSlug, @PathParam(value="locale") String localeId, @QueryParam(value="docId") String docId, @QueryParam(value="merge") String merge, DocumentFileUploadForm uploadForm)
@GET @Path(value="/source/{projectSlug}/{iterationSlug}/{fileType}") javax.ws.rs.core.Response downloadSourceFile(@PathParam(value="projectSlug") String projectSlug, @PathParam(value="iterationSlug") String iterationSlug, @PathParam(value="fileType") String fileType, @QueryParam(value="docId") String docId)
@GET @Path(value="/translation/{projectSlug}/{iterationSlug}/{locale}/{fileType}") javax.ws.rs.core.Response downloadTranslationFile(@PathParam(value="projectSlug") String projectSlug, @PathParam(value="iterationSlug") String iterationSlug, @PathParam(value="locale") String locale, @PathParam(value="fileType") String fileExtension, @QueryParam(value="docId") String docId)
@GET @Path(value="/download/{downloadId}") javax.ws.rs.core.Response download(@PathParam(value="downloadId") String downloadId)
Copyright © 2013 Zanata Project. All rights reserved.