Power.Dev Hangfire Services

<back to all web services

FuelMixOperationRequest

The following routes are available for this service:
POST/fuel-mix-operation
GET/fuel-mix-operation/{Provider}
GET/fuel-mix-operation/{Provider}/{Date}
import 'package:servicestack/servicestack.dart';

enum DataProvider
{
    Undefined,
    SPP,
    ERCOT,
    MISO,
    CAISO,
    PJM,
    ISONE,
    NYISO,
    NW,
    SW,
    SE,
    AESO,
    IESO,
    CENACE,
    NONISO,
    EIA,
    PNM,
    NREL,
    NOAA,
    ENTSOE,
    EPIAS,
    SELF,
}

class FuelMixOperationRequest implements IConvertible
{
    DataProvider? provider;
    DateTime? date;
    bool? force;

    FuelMixOperationRequest({this.provider,this.date,this.force});
    FuelMixOperationRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        provider = JsonConverters.fromJson(json['provider'],'DataProvider',context!);
        date = JsonConverters.fromJson(json['date'],'DateTime',context!);
        force = json['force'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'provider': JsonConverters.toJson(provider,'DataProvider',context!),
        'date': JsonConverters.toJson(date,'DateTime',context!),
        'force': force
    };

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

TypeContext _ctx = TypeContext(library: 'catalog_jobs_dev.power.dev', types: <String, TypeInfo> {
    'DataProvider': TypeInfo(TypeOf.Enum, enumValues:DataProvider.values),
    'FuelMixOperationRequest': TypeInfo(TypeOf.Class, create:() => FuelMixOperationRequest()),
});

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

POST /fuel-mix-operation HTTP/1.1 
Host: catalog-jobs-dev.power.dev 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"provider":"Undefined","date":"\/Date(-62135596800000-0000)\/","force":false}