| GET,POST,PUT,DELETE,OPTIONS | /v1/Conference/{ConferenceId} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/Conference |
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class Conference implements IConvertible
{
String? ConferenceId;
String? Description;
Conference({this.ConferenceId,this.Description});
Conference.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ConferenceId = json['ConferenceId'];
Description = json['Description'];
return this;
}
Map<String, dynamic> toJson() => {
'ConferenceId': ConferenceId,
'Description': Description
};
getTypeName() => "Conference";
TypeContext? context = _ctx;
}
class ConferenceResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
List<Conference>? Conference = [];
ConferenceResponse({this.ResponseStatus,this.Conference});
ConferenceResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
Conference = JsonConverters.fromJson(json['Conference'],'List<Conference>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'Conference': JsonConverters.toJson(Conference,'List<Conference>',context!)
};
getTypeName() => "ConferenceResponse";
TypeContext? context = _ctx;
}
class ConferenceRequest implements IConvertible
{
List<Conference>? Conference = [];
ConferenceRequest({this.Conference});
ConferenceRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Conference = JsonConverters.fromJson(json['Conference'],'List<Conference>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Conference': JsonConverters.toJson(Conference,'List<Conference>',context!)
};
getTypeName() => "ConferenceRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'Conference': TypeInfo(TypeOf.Class, create:() => Conference()),
'ConferenceResponse': TypeInfo(TypeOf.Class, create:() => ConferenceResponse()),
'List<Conference>': TypeInfo(TypeOf.Class, create:() => <Conference>[]),
'ConferenceRequest': TypeInfo(TypeOf.Class, create:() => ConferenceRequest()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Conference/{ConferenceId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Conference":[{"ConferenceId":"00000000000000000000000000000000","Description":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Conference":[{"ConferenceId":"00000000000000000000000000000000","Description":"String"}]}