Revision 44636
Added by Katerina Iatropoulou over 7 years ago
XMLResponseFormat.java | ||
---|---|---|
9 | 9 |
public static final String error400Message = "<response><status>error</status><code>400</code><message>%s</message></response>"; |
10 | 10 |
public static final String error500Message = "<response><status>fail</status><code>500</code><message>%s</message><description>%s</description></response>"; |
11 | 11 |
|
12 |
public static final String singleValueResponse = "{\"meta\": %s, %s }"; |
|
13 |
public static final String response = "<response><meta>%s</meta><results>%s<results>%s<response>"; |
|
12 | 14 |
|
15 |
public static final String metaSearch = "<status>success</status><code>200</code><query>%s</query><filters>%s</filters><total>%s</total><page>%s</page><size>%s</size><links>%s</links>"; |
|
16 |
public static final String _links = "<first>%s</first>" + |
|
17 |
"<last>%s</last>" + |
|
18 |
"<previous>%s</previous>" + |
|
19 |
"<next>%s</next>" + |
|
20 |
"<self>%s</self>"; |
|
21 |
|
|
22 |
public static final String _selflink = "<self>%s</self>"; |
|
23 |
|
|
24 |
|
|
13 | 25 |
} |
14 | 26 |
|
Also available in: Unified diff
Progress on json and xml format. Still only resources api available.