Power.Dev Hangfire Services

<back to all web services

LayersTransmissionLinesMapboxRequest

The following routes are available for this service:
POST/layers/tl/mapbox
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 LayersTransmissionLinesMapboxRequest implements IConvertible
{
    DataProvider? provider;
    String? tilesetKey;

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

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

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

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

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

Dart LayersTransmissionLinesMapboxRequest 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/tl/mapbox HTTP/1.1 
Host: catalog-jobs-dev.power.dev 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

{
	
}