Power.Dev Hangfire Services

<back to all web services

LayersPowerPlantsCapacityFixRequest

The following routes are available for this service:
POST/layers/pp/capacity
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 LayersPowerPlantsCapacityFixRequest implements IConvertible
{
    DataProvider? provider;

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

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

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

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

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

Dart LayersPowerPlantsCapacityFixRequest 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 /layers/pp/capacity HTTP/1.1 
Host: catalog-jobs-dev.power.dev 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	provider: Undefined
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}