FIBUdataServiceStack

<back to all web services

OnlinehandelShopifyCheckShopTokenRequest

The following routes are available for this service:
GET, POST/fibuscan/Onlinehandel/shopify/checkShopToken
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class OnlinehandelShopifyCheckShopTokenResponse implements IConvertible
{
    String? error;
    bool? result;
    String? mandnr;
    List<String>? werte;

    OnlinehandelShopifyCheckShopTokenResponse({this.error,this.result,this.mandnr,this.werte});
    OnlinehandelShopifyCheckShopTokenResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        error = json['error'];
        result = json['result'];
        mandnr = json['mandnr'];
        werte = JsonConverters.fromJson(json['werte'],'List<String>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'error': error,
        'result': result,
        'mandnr': mandnr,
        'werte': JsonConverters.toJson(werte,'List<String>',context!)
    };

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

class OnlinehandelShopifyCheckShopTokenRequest implements IConvertible
{
    String? token;

    OnlinehandelShopifyCheckShopTokenRequest({this.token});
    OnlinehandelShopifyCheckShopTokenRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
    'OnlinehandelShopifyCheckShopTokenResponse': TypeInfo(TypeOf.Class, create:() => OnlinehandelShopifyCheckShopTokenResponse()),
    'OnlinehandelShopifyCheckShopTokenRequest': TypeInfo(TypeOf.Class, create:() => OnlinehandelShopifyCheckShopTokenRequest()),
});

Dart OnlinehandelShopifyCheckShopTokenRequest 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.

POST /fibuscan/Onlinehandel/shopify/checkShopToken HTTP/1.1 
Host: ws4.fibudata.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

{
	error: String,
	result: False,
	mandnr: String,
	werte: 
	[
		String
	]
}