Test

<back to all web services

AllowedAttributes

AllowedAttributes Description

The following routes are available for this service:
GET/allowed-attributes
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

/**
* AllowedAttributes Description
*/
// @Api(Description="AllowedAttributes Description")
// @ApiResponse(Description="Your request was not understood", StatusCode=400)
// @DataContract
class AllowedAttributes implements IConvertible
{
    /**
    * Range Description
    */
    // @DataMember(Name="Aliased")
    // @ApiMember(DataType="double", Description="Range Description", IsRequired=true, ParameterType="path")
    double? Aliased;

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

    fromMap(Map<String, dynamic> json) {
        Aliased = JsonConverters.toDouble(json['range']);
        return this;
    }

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

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

TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: <String, TypeInfo> {
    'AllowedAttributes': TypeInfo(TypeOf.Class, create:() => AllowedAttributes()),
});

Dart AllowedAttributes DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /allowed-attributes HTTP/1.1 
Host: test.servicestack.net 
Accept: application/json