Power.Dev Hangfire Services

<back to all web services

LocationNodeMapRequest

The following routes are available for this service:
POST/location/node-map
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 LocationNodeMapRequest implements IConvertible
{
    DataProvider? provider;

    LocationNodeMapRequest({this.provider});
    LocationNodeMapRequest.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() => "LocationNodeMapRequest";
    TypeContext? context = _ctx;
}

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

Dart LocationNodeMapRequest 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 /location/node-map HTTP/1.1 
Host: catalog-jobs-dev.power.dev 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

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

{}