Power.Dev Hangfire Services

<back to all web services

SyncNodeFilesRequest

The following routes are available for this service:
POST/awss3-sync-node-files
import 'package:servicestack/servicestack.dart';

enum PriceMarketType
{
    Undefined,
    Realtime,
    DayAhead,
    DART,
}

class SyncNodeFilesRequest implements IConvertible
{
    String? type;
    PriceMarketType? marketType;

    SyncNodeFilesRequest({this.type,this.marketType});
    SyncNodeFilesRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'type': type,
        'marketType': JsonConverters.toJson(marketType,'PriceMarketType',context!)
    };

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

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

Dart SyncNodeFilesRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /awss3-sync-node-files HTTP/1.1 
Host: catalog-jobs-dev.power.dev 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"type":"String","marketType":"Undefined"}