-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathSampleApiResponses.java
More file actions
36 lines (33 loc) · 1.53 KB
/
SampleApiResponses.java
File metadata and controls
36 lines (33 loc) · 1.53 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
package com.smartling.api.mtrouter.v2;
interface SampleApiResponses
{
String SUCCESS_RESPONSE_ENVELOPE = "{\"response\":{\"code\":\"SUCCESS\",\"data\":%s}}";
String ERRONEOUS_GENERATE_ACCOUNT_TRANSLATION_RESPONSE_BODY = "{\n"
+ " \"totalCount\": 1,\n"
+ " \"items\": [\n"
+ " {\n"
+ " \"key\": \"test-key\",\n"
+ " \"mtUid\": null,\n"
+ " \"translationText\": null,\n"
+ " \"error\": {\n"
+ " \"code\": \"INVALID_SOURCE_TEXT\",\n"
+ " \"key\": \"validation.error\",\n"
+ " \"message\": \"Source text was invalid\"\n"
+ " },\n"
+ " \"provider\": null\n"
+ " }\n"
+ " ]\n"
+ " }";
String SUCCESS_GENERATE_ACCOUNT_TRANSLATION_RESPONSE_BODY = " {\n"
+ " \"totalCount\": 1,\n"
+ " \"items\": [\n"
+ " {\n"
+ " \"key\": \"test-key\",\n"
+ " \"mtUid\": \"a36z4bunraj1\",\n"
+ " \"translationText\": \"Zu übersetzenden Text testen\",\n"
+ " \"error\": null,\n"
+ " \"provider\": \"AUTO_SELECT_PROVIDER\"\n"
+ " }\n"
+ " ]\n"
+ " }";
}