digitaluapi

<back to all web services

LookupListCategoriesAdd

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
POST/lookup_list_categories
import 'package:servicestack/servicestack.dart';
import 'dart:collection';

class LookupListCategoriesAddResponse implements IConvertible
{
    // @DataMember(Order=2)
    String? Description;

    // @DataMember(Order=3)
    bool? IsEnabled;

    // @DataMember(Order=4)
    int? TenantId;

    // @DataMember(Order=5)
    String? RowVersionGuid;

    // @DataMember(Order=7)
    ResponseStatus? ResponseStatus;

    LookupListCategoriesAddResponse({this.Description,this.IsEnabled,this.TenantId,this.RowVersionGuid,this.ResponseStatus});
    LookupListCategoriesAddResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Description = json['Description'];
        IsEnabled = json['IsEnabled'];
        TenantId = json['TenantId'];
        RowVersionGuid = json['RowVersionGuid'];
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Description': Description,
        'IsEnabled': IsEnabled,
        'TenantId': TenantId,
        'RowVersionGuid': RowVersionGuid,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

    getTypeName() => "LookupListCategoriesAddResponse";
    TypeContext? context = _ctx;
}

// @DataContract
class LookupListCategoriesAdd implements IConvertible
{
    // @DataMember(Order=2)
    // @Validate(Validator="NotNull")
    String? Description;

    // @DataMember(Order=3)
    // @Validate(Validator="NotNull")
    bool? IsEnabled;

    // @DataMember(Order=4)
    int? TenantId;

    // @DataMember(Order=5)
    // @Validate(Validator="NotNull")
    String? RowVersionGuid;

    LookupListCategoriesAdd({this.Description,this.IsEnabled,this.TenantId,this.RowVersionGuid});
    LookupListCategoriesAdd.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Description = json['Description'];
        IsEnabled = json['IsEnabled'];
        TenantId = json['TenantId'];
        RowVersionGuid = json['RowVersionGuid'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Description': Description,
        'IsEnabled': IsEnabled,
        'TenantId': TenantId,
        'RowVersionGuid': RowVersionGuid
    };

    getTypeName() => "LookupListCategoriesAdd";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
    'LookupListCategoriesAddResponse': TypeInfo(TypeOf.Class, create:() => LookupListCategoriesAddResponse()),
    'LookupListCategoriesAdd': TypeInfo(TypeOf.Class, create:() => LookupListCategoriesAdd()),
});

Dart LookupListCategoriesAdd DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /lookup_list_categories HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Description":"String","IsEnabled":false,"TenantId":0,"RowVersionGuid":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Description":"String","IsEnabled":false,"TenantId":0,"RowVersionGuid":"00000000000000000000000000000000","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}