@Path(value="/tm")
@Produces(value="application/xml")
@Consumes(value="application/xml")
public interface TranslationMemoryResource
| Modifier and Type | Field and Description |
|---|---|
static String |
PREFERRED_MEDIA_TYPE |
static String |
SERVICE_PATH |
| Modifier and Type | Method and Description |
|---|---|
Object |
deleteTranslationUnits(String slug)
Delete a collection of translation memory
|
javax.ws.rs.core.Response |
getAllTranslationMemory(LocaleId srcLocale,
LocaleId locale)
Returns all translation memory in the system
|
javax.ws.rs.core.Response |
getProjectIterationTranslationMemory(String projectSlug,
String iterationSlug,
LocaleId srcLocale,
LocaleId locale)
Retrieves translation memory for a project version
|
javax.ws.rs.core.Response |
getProjectTranslationMemory(String projectSlug,
LocaleId srcLocale,
LocaleId locale)
Retrieves translation memory for a project
|
javax.ws.rs.core.Response |
getTranslationMemory(String slug)
Retrieves a collection of translation memory
|
javax.ws.rs.core.Response |
updateTranslationMemory(String slug,
InputStream input)
Updates a collection of translation memory
|
static final String SERVICE_PATH
static final String PREFERRED_MEDIA_TYPE
@GET @Path(value="all") javax.ws.rs.core.Response getAllTranslationMemory(@QueryParam(value="srcLocale") @Nullable LocaleId srcLocale, @QueryParam(value="locale") @Nullable LocaleId locale)
srcLocale - Source localelocale - Translation locale@GET
@Path(value="projects/{projectSlug}")
javax.ws.rs.core.Response getProjectTranslationMemory(@PathParam(value="projectSlug") @Nonnull
String projectSlug,
@QueryParam(value="srcLocale") @Nullable
LocaleId srcLocale,
@QueryParam(value="locale") @Nullable
LocaleId locale)
projectSlug - Project identifiersrcLocale - Source localelocale - Translation locale@GET
@Path(value="projects/{projectSlug}/iterations/{iterationSlug}")
javax.ws.rs.core.Response getProjectIterationTranslationMemory(@PathParam(value="projectSlug") @Nonnull
String projectSlug,
@PathParam(value="iterationSlug") @Nonnull
String iterationSlug,
@QueryParam(value="srcLocale") @Nullable
LocaleId srcLocale,
@QueryParam(value="locale") @Nullable
LocaleId locale)
projectSlug - Project identifieriterationSlug - Project version identifiersrcLocale - Source localelocale - Translation locale@GET
@Path(value="{slug}")
javax.ws.rs.core.Response getTranslationMemory(@PathParam(value="slug") @Nonnull
String slug)
slug - Identifier for a translation memory collection@POST
@Path(value="{slug}")
@Consumes(value="*/*")
javax.ws.rs.core.Response updateTranslationMemory(@PathParam(value="slug")
String slug,
InputStream input)
throws Exception
slug - Identifier for a translation memory collectioninput - Input stream of TMX fileExceptionCopyright © 2018 Zanata Project. All rights reserved.