|
1 | 1 | /* Options: |
2 | | -Date: 2015-03-21 19:28:31 |
| 2 | +Date: 2015-03-25 04:55:22 |
3 | 3 | Version: 1 |
4 | 4 | BaseUrl: http://localhost:2020 |
5 | 5 |
|
|
12 | 12 | //AddImplicitVersion: |
13 | 13 | //IncludeTypes: |
14 | 14 | //ExcludeTypes: |
15 | | -//DefaultImports: java.math.*,java.util.*,net.servicestack.* |
| 15 | +//DefaultImports: java.math.*,java.util.*,net.servicestack.client.* |
16 | 16 | */ |
17 | 17 |
|
18 | 18 | package servicestack.net.client.tests; |
@@ -46,31 +46,6 @@ public static class Rockstar |
46 | 46 | public Rockstar setAge(Integer value) { this.Age = value; return this; } |
47 | 47 | } |
48 | 48 |
|
49 | | - @DataContract |
50 | | - public static class ResponseStatus |
51 | | - { |
52 | | - @DataMember(Order=1) |
53 | | - public String ErrorCode = null; |
54 | | - |
55 | | - @DataMember(Order=2) |
56 | | - public String Message = null; |
57 | | - |
58 | | - @DataMember(Order=3) |
59 | | - public String StackTrace = null; |
60 | | - |
61 | | - @DataMember(Order=4) |
62 | | - public ArrayList<ResponseError> Errors = null; |
63 | | - |
64 | | - public String getErrorCode() { return ErrorCode; } |
65 | | - public ResponseStatus setErrorCode(String value) { this.ErrorCode = value; return this; } |
66 | | - public String getMessage() { return Message; } |
67 | | - public ResponseStatus setMessage(String value) { this.Message = value; return this; } |
68 | | - public String getStackTrace() { return StackTrace; } |
69 | | - public ResponseStatus setStackTrace(String value) { this.StackTrace = value; return this; } |
70 | | - public ArrayList<ResponseError> getErrors() { return Errors; } |
71 | | - public ResponseStatus setErrors(ArrayList<ResponseError> value) { this.Errors = value; return this; } |
72 | | - } |
73 | | - |
74 | 49 | public static class MetadataTestChild |
75 | 50 | { |
76 | 51 | public String Name = null; |
@@ -296,12 +271,12 @@ public static class AllTypes |
296 | 271 | public BigDecimal Decimal = null; |
297 | 272 | public String String = null; |
298 | 273 | public Date DateTime = null; |
299 | | - public String TimeSpan = null; |
300 | | - public String DateTimeOffset = null; |
301 | | - public String Guid = null; |
302 | | - public Integer Char = null; |
| 274 | + public TimeSpan TimeSpan = null; |
| 275 | + public Date DateTimeOffset = null; |
| 276 | + public UUID Guid = null; |
| 277 | + public String Char = null; |
303 | 278 | public Date NullableDateTime = null; |
304 | | - public String NullableTimeSpan = null; |
| 279 | + public TimeSpan NullableTimeSpan = null; |
305 | 280 | public ArrayList<String> StringList = null; |
306 | 281 | public ArrayList<String> StringArray = null; |
307 | 282 | public HashMap<String,String> StringMap = null; |
@@ -336,18 +311,18 @@ public static class AllTypes |
336 | 311 | public AllTypes setString(String value) { this.String = value; return this; } |
337 | 312 | public Date getDateTime() { return DateTime; } |
338 | 313 | public AllTypes setDateTime(Date value) { this.DateTime = value; return this; } |
339 | | - public String getTimeSpan() { return TimeSpan; } |
340 | | - public AllTypes setTimeSpan(String value) { this.TimeSpan = value; return this; } |
341 | | - public String getDateTimeOffset() { return DateTimeOffset; } |
342 | | - public AllTypes setDateTimeOffset(String value) { this.DateTimeOffset = value; return this; } |
343 | | - public String getGuid() { return Guid; } |
344 | | - public AllTypes setGuid(String value) { this.Guid = value; return this; } |
345 | | - public Integer getChar() { return Char; } |
346 | | - public AllTypes setChar(Integer value) { this.Char = value; return this; } |
| 314 | + public TimeSpan getTimeSpan() { return TimeSpan; } |
| 315 | + public AllTypes setTimeSpan(TimeSpan value) { this.TimeSpan = value; return this; } |
| 316 | + public Date getDateTimeOffset() { return DateTimeOffset; } |
| 317 | + public AllTypes setDateTimeOffset(Date value) { this.DateTimeOffset = value; return this; } |
| 318 | + public UUID getGuid() { return Guid; } |
| 319 | + public AllTypes setGuid(UUID value) { this.Guid = value; return this; } |
| 320 | + public String getChar() { return Char; } |
| 321 | + public AllTypes setChar(String value) { this.Char = value; return this; } |
347 | 322 | public Date getNullableDateTime() { return NullableDateTime; } |
348 | 323 | public AllTypes setNullableDateTime(Date value) { this.NullableDateTime = value; return this; } |
349 | | - public String getNullableTimeSpan() { return NullableTimeSpan; } |
350 | | - public AllTypes setNullableTimeSpan(String value) { this.NullableTimeSpan = value; return this; } |
| 324 | + public TimeSpan getNullableTimeSpan() { return NullableTimeSpan; } |
| 325 | + public AllTypes setNullableTimeSpan(TimeSpan value) { this.NullableTimeSpan = value; return this; } |
351 | 326 | public ArrayList<String> getStringList() { return StringList; } |
352 | 327 | public AllTypes setStringList(ArrayList<String> value) { this.StringList = value; return this; } |
353 | 328 | public ArrayList<String> getStringArray() { return StringArray; } |
@@ -738,26 +713,6 @@ public static class QueryBase |
738 | 713 | public QueryBase setOrderByDesc(String value) { this.OrderByDesc = value; return this; } |
739 | 714 | } |
740 | 715 |
|
741 | | - @DataContract |
742 | | - public static class ResponseError |
743 | | - { |
744 | | - @DataMember(Order=1, EmitDefaultValue=false) |
745 | | - public String ErrorCode = null; |
746 | | - |
747 | | - @DataMember(Order=2, EmitDefaultValue=false) |
748 | | - public String FieldName = null; |
749 | | - |
750 | | - @DataMember(Order=3, EmitDefaultValue=false) |
751 | | - public String Message = null; |
752 | | - |
753 | | - public String getErrorCode() { return ErrorCode; } |
754 | | - public ResponseError setErrorCode(String value) { this.ErrorCode = value; return this; } |
755 | | - public String getFieldName() { return FieldName; } |
756 | | - public ResponseError setFieldName(String value) { this.FieldName = value; return this; } |
757 | | - public String getMessage() { return Message; } |
758 | | - public ResponseError setMessage(String value) { this.Message = value; return this; } |
759 | | - } |
760 | | - |
761 | 716 | public static class MetadataTestNestedChild |
762 | 717 | { |
763 | 718 | public String Name = null; |
@@ -1029,10 +984,10 @@ public static class CustomFieldHttpErrorResponse |
1029 | 984 |
|
1030 | 985 | public static class NoRepeatResponse |
1031 | 986 | { |
1032 | | - public String Id = null; |
| 987 | + public UUID Id = null; |
1033 | 988 |
|
1034 | | - public String getId() { return Id; } |
1035 | | - public NoRepeatResponse setId(String value) { this.Id = value; return this; } |
| 989 | + public UUID getId() { return Id; } |
| 990 | + public NoRepeatResponse setId(UUID value) { this.Id = value; return this; } |
1036 | 991 | } |
1037 | 992 |
|
1038 | 993 | public static class BatchThrowsResponse |
@@ -1356,10 +1311,10 @@ public static class FallbackRoute |
1356 | 1311 |
|
1357 | 1312 | public static class NoRepeat implements IReturn<NoRepeatResponse> |
1358 | 1313 | { |
1359 | | - public String Id = null; |
| 1314 | + public UUID Id = null; |
1360 | 1315 |
|
1361 | | - public String getId() { return Id; } |
1362 | | - public NoRepeat setId(String value) { this.Id = value; return this; } |
| 1316 | + public UUID getId() { return Id; } |
| 1317 | + public NoRepeat setId(UUID value) { this.Id = value; return this; } |
1363 | 1318 | private static Class responseType = NoRepeatResponse.class; |
1364 | 1319 | public Class getResponseType() { return responseType; } |
1365 | 1320 | } |
@@ -1444,6 +1399,7 @@ public static class HelloInService implements IReturn<HelloResponse> |
1444 | 1399 | } |
1445 | 1400 |
|
1446 | 1401 | @Route("/hello/{Name}") |
| 1402 | + // @Route("/hello") |
1447 | 1403 | public static class Hello implements IReturn<HelloResponse> |
1448 | 1404 | { |
1449 | 1405 | @Required() |
@@ -1549,8 +1505,8 @@ public static class RestrictedAttributes |
1549 | 1505 | * AllowedAttributes Description |
1550 | 1506 | */ |
1551 | 1507 | @Route(Path="/allowed-attributes", Verbs="GET") |
1552 | | - // @ApiResponse(400, "Your request was not understood") |
1553 | 1508 | @Api("AllowedAttributes Description") |
| 1509 | + // @ApiResponse(400, "Your request was not understood") |
1554 | 1510 | @DataContract |
1555 | 1511 | public static class AllowedAttributes |
1556 | 1512 | { |
|
0 commit comments