GET | /script | ||
---|---|---|---|
GET | /script/{Sprint} | ||
GET | /script/{Sprint}/{Country}/{Language}/{Section}/{Element} | ||
GET | /script/{Sprint}/{Country}/{Language}/{Section}/{ItemCode}/{Element} |
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class Entity implements IEntity, IConvertible
{
String? id;
Entity({this.id});
Entity.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id
};
getTypeName() => "Entity";
TypeContext? context = _ctx;
}
class ScriptTracker extends Entity implements IConvertible
{
String? sprint;
String? country;
String? language;
String? section;
String? itemCode;
String? element;
String? value;
bool? isFromMerge;
ScriptTracker({this.sprint,this.country,this.language,this.section,this.itemCode,this.element,this.value,this.isFromMerge});
ScriptTracker.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
sprint = json['sprint'];
country = json['country'];
language = json['language'];
section = json['section'];
itemCode = json['itemCode'];
element = json['element'];
value = json['value'];
isFromMerge = json['isFromMerge'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'sprint': sprint,
'country': country,
'language': language,
'section': section,
'itemCode': itemCode,
'element': element,
'value': value,
'isFromMerge': isFromMerge
});
getTypeName() => "ScriptTracker";
TypeContext? context = _ctx;
}
class ScriptTrackerReq implements IConvertible
{
String? sprint;
String? country;
String? language;
String? section;
String? itemCode;
String? element;
ScriptTrackerReq({this.sprint,this.country,this.language,this.section,this.itemCode,this.element});
ScriptTrackerReq.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
sprint = json['sprint'];
country = json['country'];
language = json['language'];
section = json['section'];
itemCode = json['itemCode'];
element = json['element'];
return this;
}
Map<String, dynamic> toJson() => {
'sprint': sprint,
'country': country,
'language': language,
'section': section,
'itemCode': itemCode,
'element': element
};
getTypeName() => "ScriptTrackerReq";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'hcbtas_q_albamfs_api.azurewebsites.net', types: <String, TypeInfo> {
'Entity': TypeInfo(TypeOf.Class, create:() => Entity()),
'ScriptTracker': TypeInfo(TypeOf.Class, create:() => ScriptTracker()),
'ScriptTrackerReq': TypeInfo(TypeOf.Class, create:() => ScriptTrackerReq()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /script HTTP/1.1 Host: hcbtas-q-albamfs-api.azurewebsites.net Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"sprint":"String","country":"String","language":"String","section":"String","itemCode":"String","element":"String","value":"String","isFromMerge":false,"id":"String"}