-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathStringsApi.java
More file actions
49 lines (41 loc) · 2.05 KB
/
StringsApi.java
File metadata and controls
49 lines (41 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.smartling.api.strings.v2;
import com.smartling.api.strings.v2.pto.AsyncStatusResponsePTO;
import com.smartling.api.strings.v2.pto.CreatedStringsListPTO;
import com.smartling.api.strings.v2.pto.GetSourceStringsCommandPTO;
import com.smartling.api.strings.v2.pto.SourceStringListPTO;
import com.smartling.api.strings.v2.pto.StringsCreationPTO;
import com.smartling.api.strings.v2.pto.TranslationsCommandPTO;
import com.smartling.api.strings.v2.pto.TranslationsPTO;
import com.smartling.api.v2.response.ListResponse;
import javax.ws.rs.BeanParam;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("/strings-api/v2")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface StringsApi extends AutoCloseable
{
@POST
@Path("/projects/{projectUid}")
CreatedStringsListPTO createStrings(@PathParam("projectUid") String projectUid, StringsCreationPTO stringsCreationPTO);
@GET
@Path("/projects/{projectUid}/processes/{processUid}")
AsyncStatusResponsePTO checkStatus(@PathParam("projectUid") String projectUid, @PathParam("processUid") String processUid);
@GET
@Path("/projects/{projectUid}/source-strings")
SourceStringListPTO getSourceStrings(@PathParam("projectUid") String projectUid, @BeanParam GetSourceStringsCommandPTO sourceStringsCommand);
@POST
@Path("/projects/{projectUid}/source-strings")
SourceStringListPTO getSourceStringsPost(@PathParam("projectUid") String projectUid, GetSourceStringsCommandPTO sourceStringsCommand);
@GET
@Path("/projects/{projectUid}/translations")
ListResponse<TranslationsPTO> getTranslations(@PathParam("projectUid") String projectUid, @BeanParam TranslationsCommandPTO translationsCommand);
@POST
@Path("/projects/{projectUid}/translations")
ListResponse<TranslationsPTO> getTranslationsPost(@PathParam("projectUid") String projectUid, TranslationsCommandPTO translationsCommand);
}