| Requires any of the roles: | Client, Admin, Partner |
| GET | /status_codes |
|---|
import 'package:servicestack/servicestack.dart';
// @DataContract
class StatusCodesLookup implements IConvertible
{
// @DataMember(Order=2)
int? TenantsId;
// @DataMember(Order=3)
int? StatusTypesId;
// @DataMember(Order=4)
String? Code;
// @DataMember(Order=5)
String? Description;
StatusCodesLookup({this.TenantsId,this.StatusTypesId,this.Code,this.Description});
StatusCodesLookup.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
TenantsId = json['TenantsId'];
StatusTypesId = json['StatusTypesId'];
Code = json['Code'];
Description = json['Description'];
return this;
}
Map<String, dynamic> toJson() => {
'TenantsId': TenantsId,
'StatusTypesId': StatusTypesId,
'Code': Code,
'Description': Description
};
getTypeName() => "StatusCodesLookup";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
'StatusCodesLookup': TypeInfo(TypeOf.Class, create:() => StatusCodesLookup()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /status_codes HTTP/1.1 Host: duengageapi.uat.scadsoftware.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
[
{
TenantsId: 0,
StatusTypesId: 0,
Code: String,
Description: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}
]