@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) |
javax.ws.rs.core.Response |
getAllTranslationMemory(LocaleId locale) |
javax.ws.rs.core.Response |
getProjectIterationTranslationMemory(String projectSlug,
String iterationSlug,
LocaleId locale) |
javax.ws.rs.core.Response |
getProjectTranslationMemory(String projectSlug,
LocaleId locale) |
javax.ws.rs.core.Response |
getTranslationMemory(String slug) |
javax.ws.rs.core.Response |
updateTranslationMemory(String slug,
InputStream input) |
static final String SERVICE_PATH
static final String PREFERRED_MEDIA_TYPE
@GET @Path(value="all") javax.ws.rs.core.Response getAllTranslationMemory(@QueryParam(value="locale") @Nullable LocaleId locale)
@GET
@Path(value="projects/{projectSlug}")
javax.ws.rs.core.Response getProjectTranslationMemory(@PathParam(value="projectSlug") @Nonnull
String projectSlug,
@QueryParam(value="locale") @Nullable
LocaleId 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="locale") @Nullable
LocaleId locale)
@GET
@Path(value="{slug}")
javax.ws.rs.core.Response getTranslationMemory(@PathParam(value="slug") @Nonnull
String slug)
@POST
@Path(value="{slug}")
@Consumes(value="*/*")
javax.ws.rs.core.Response updateTranslationMemory(@PathParam(value="slug")
String slug,
InputStream input)
throws Exception
ExceptionCopyright © 2015 Zanata Project. All rights reserved.