TicketUserServices

<back to all web services

TestSignatureRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
GET POST/signature/test
GET POST/signature/test/{key}/{text}
import 'package:servicestack/servicestack.dart';

class TestSignatureResult implements IConvertible
{
    String? signature;

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

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

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

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

class TestSignatureRequest implements IConvertible
{
    String? key;
    String? text;

    TestSignatureRequest({this.key,this.text});
    TestSignatureRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
    'TestSignatureResult': TypeInfo(TypeOf.Class, create:() => TestSignatureResult()),
    'TestSignatureRequest': TypeInfo(TypeOf.Class, create:() => TestSignatureRequest()),
});

Dart TestSignatureRequest 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 /signature/test HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

{
	signature: String
}