<back to all web services

AuthorReviewedGetRequest

The following routes are available for this service:
GET/RestApi/reviews-api
import 'package:servicestack/servicestack.dart';

class AuthorReviewedGetRequest implements IConvertible
{
    String? ThreadKey;

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

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

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

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

class AuthorReviewedViewModel implements IConvertible
{
    bool? AuthorAlreadyReviewed;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
    'AuthorReviewedGetRequest': TypeInfo(TypeOf.Class, create:() => AuthorReviewedGetRequest()),
    'AuthorReviewedViewModel': TypeInfo(TypeOf.Class, create:() => AuthorReviewedViewModel()),
});

Dart AuthorReviewedGetRequest DTOs

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

HTTP + CSV

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

GET /RestApi/reviews-api HTTP/1.1 
Host: www.asg.com.au 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"AuthorAlreadyReviewed":false}