Power.Dev Hangfire Services

<back to all web services

EiaGenerationPlantBasedJobRequest

The following routes are available for this service:
POST/eia/plant-generation-job
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 EiaGenerationPlantBasedJobRequest implements IConvertible
{
    TimeGranularity? timeGranularity;

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

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

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

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

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

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

POST /eia/plant-generation-job HTTP/1.1 
Host: catalog-jobs-dev.power.dev 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"timeGranularity":"Undefined"}