Power.Dev Optimization Services

<back to all web services

OptimizerApiStatusRequest

The following routes are available for this service:
POST,GET/status
import 'package:servicestack/servicestack.dart';

class OptimizerApiStatusRequest implements IConvertible
{
    OptimizerApiStatusRequest();
    OptimizerApiStatusRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "OptimizerApiStatusRequest";
    TypeContext? context = _ctx;
}

class ApiStatusResponse implements IConvertible
{
    bool? success;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'dev_optimization.power.dev', types: <String, TypeInfo> {
    'OptimizerApiStatusRequest': TypeInfo(TypeOf.Class, create:() => OptimizerApiStatusRequest()),
    'ApiStatusResponse': TypeInfo(TypeOf.Class, create:() => ApiStatusResponse()),
});

Dart OptimizerApiStatusRequest DTOs

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

HTTP + OTHER

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

POST /status HTTP/1.1 
Host: dev-optimization.power.dev 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"success":false}