@Produces(value="application/xml")
@Consumes(value="application/xml")
public interface TranslationMemoryResource
Modifier and Type | Field and Description |
---|---|
static String |
PREFERRED_MEDIA_TYPE |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
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 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
Exception
@DELETE @Path(value="{slug}/transunits") javax.ws.rs.core.Response deleteTranslationUnits(@PathParam(value="slug") String slug)
Copyright © 2013 Zanata Project. All rights reserved.