Power.Dev Hangfire Services

<back to all web services

SitingRunRequest

The following routes are available for this service:
POST/siting-run
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 SitingRunRequest implements IConvertible
{
    DataProvider? provider;
    int? nodeId;

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

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

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

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

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

Dart SitingRunRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /siting-run HTTP/1.1 
Host: catalog-jobs-dev.power.dev 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SitingRunRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/powerDev.ISO.ServiceModels">
  <NodeId>0</NodeId>
  <Provider>Undefined</Provider>
</SitingRunRequest>