| POST | /ercot-day-ahead-load-forecast |
|---|
import 'package:servicestack/servicestack.dart';
class ErcotDayAheadLoadForecastRequest implements IConvertible
{
int? docId;
ErcotDayAheadLoadForecastRequest({this.docId});
ErcotDayAheadLoadForecastRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
docId = json['docId'];
return this;
}
Map<String, dynamic> toJson() => {
'docId': docId
};
getTypeName() => "ErcotDayAheadLoadForecastRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'catalog_jobs_dev.power.dev', types: <String, TypeInfo> {
'ErcotDayAheadLoadForecastRequest': TypeInfo(TypeOf.Class, create:() => ErcotDayAheadLoadForecastRequest()),
});
Dart ErcotDayAheadLoadForecastRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ercot-day-ahead-load-forecast HTTP/1.1
Host: catalog-jobs-dev.power.dev
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ErcotDayAheadLoadForecastRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/powerDev.ISO.ServiceModels">
<DocId>0</DocId>
</ErcotDayAheadLoadForecastRequest>