Trendsic Platform Service

<back to all web services

ApsConfigPutRequest

Requires Authentication
The following routes are available for this service:
PUT,OPTIONS/v1/aps/config
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class ApsConfigResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    bool? Connected;
    String? ClientIdMasked;
    bool? HasSecret;
    String? BucketKey;
    String? ConnectedAt;
    String? LastCheck;
    bool? TestOk;
    String? TestMessage;

    ApsConfigResponse({this.ResponseStatus,this.Connected,this.ClientIdMasked,this.HasSecret,this.BucketKey,this.ConnectedAt,this.LastCheck,this.TestOk,this.TestMessage});
    ApsConfigResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        Connected = json['Connected'];
        ClientIdMasked = json['ClientIdMasked'];
        HasSecret = json['HasSecret'];
        BucketKey = json['BucketKey'];
        ConnectedAt = json['ConnectedAt'];
        LastCheck = json['LastCheck'];
        TestOk = json['TestOk'];
        TestMessage = json['TestMessage'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'Connected': Connected,
        'ClientIdMasked': ClientIdMasked,
        'HasSecret': HasSecret,
        'BucketKey': BucketKey,
        'ConnectedAt': ConnectedAt,
        'LastCheck': LastCheck,
        'TestOk': TestOk,
        'TestMessage': TestMessage
    };

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

class ApsConfigPutRequest implements IConvertible
{
    String? ClientId;
    String? ClientSecret;

    ApsConfigPutRequest({this.ClientId,this.ClientSecret});
    ApsConfigPutRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ClientId = json['ClientId'];
        ClientSecret = json['ClientSecret'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ClientId': ClientId,
        'ClientSecret': ClientSecret
    };

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

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

Dart ApsConfigPutRequest DTOs

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

HTTP + JSV

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

PUT /v1/aps/config HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ClientId: String,
	ClientSecret: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Connected: False,
	ClientIdMasked: String,
	HasSecret: False,
	BucketKey: String,
	ConnectedAt: String,
	LastCheck: String,
	TestOk: False,
	TestMessage: String
}