Power.Dev Hangfire Services

<back to all web services

EIAProductionSeriesByPlantRequest

The following routes are available for this service:
POST/eia-production-request-by-plant
import 'package:servicestack/servicestack.dart';

enum TimeGranularity
{
    Undefined,
    hourly,
    daily,
    weekly,
    monthy,
    yearly,
    fivemin,
    tenmin,
    fifteenmin,
    halfhour,
    quarterly,
    twohours,
    threehours,
    fourhours,
    sixhours,
    eighthours,
    twelvehours,
    irregular,
}

class EIAProductionSeriesByPlantRequest implements IConvertible
{
    int? startPlantId;
    TimeGranularity? timeGranularity;

    EIAProductionSeriesByPlantRequest({this.startPlantId,this.timeGranularity});
    EIAProductionSeriesByPlantRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        startPlantId = json['startPlantId'];
        timeGranularity = JsonConverters.fromJson(json['timeGranularity'],'TimeGranularity',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'startPlantId': startPlantId,
        'timeGranularity': JsonConverters.toJson(timeGranularity,'TimeGranularity',context!)
    };

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

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

Dart EIAProductionSeriesByPlantRequest 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 /eia-production-request-by-plant HTTP/1.1 
Host: catalog-jobs-dev.power.dev 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	startPlantId: 0,
	timeGranularity: Undefined
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}