Trendsic Platform Service

<back to all web services

AwsAuthSendChallengeCode

The following routes are available for this service:
GET,POST,OPTIONS/v1/AwsAuthSendChallengeCode
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class AwsAuthSendChallengeCode implements IConvertible
{
    String? Username;
    String? Password;
    String? ChallengeName;

    AwsAuthSendChallengeCode({this.Username,this.Password,this.ChallengeName});
    AwsAuthSendChallengeCode.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Username = json['Username'];
        Password = json['Password'];
        ChallengeName = json['ChallengeName'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Username': Username,
        'Password': Password,
        'ChallengeName': ChallengeName
    };

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

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'AwsAuthSendChallengeCode': TypeInfo(TypeOf.Class, create:() => AwsAuthSendChallengeCode()),
});

Dart AwsAuthSendChallengeCode 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 /v1/AwsAuthSendChallengeCode HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Username":"String","Password":"String","ChallengeName":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}