| POST | /awss3-athena-test |
|---|
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 AwsAthenaTestRequest implements IConvertible
{
String? type;
DataProvider? provider;
DateTime? date;
int? hour;
AwsAthenaTestRequest({this.type,this.provider,this.date,this.hour});
AwsAthenaTestRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
type = json['type'];
provider = JsonConverters.fromJson(json['provider'],'DataProvider',context!);
date = JsonConverters.fromJson(json['date'],'DateTime',context!);
hour = json['hour'];
return this;
}
Map<String, dynamic> toJson() => {
'type': type,
'provider': JsonConverters.toJson(provider,'DataProvider',context!),
'date': JsonConverters.toJson(date,'DateTime',context!),
'hour': hour
};
getTypeName() => "AwsAthenaTestRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'catalog_jobs_dev.power.dev', types: <String, TypeInfo> {
'DataProvider': TypeInfo(TypeOf.Enum, enumValues:DataProvider.values),
'AwsAthenaTestRequest': TypeInfo(TypeOf.Class, create:() => AwsAthenaTestRequest()),
});
Dart AwsAthenaTestRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /awss3-athena-test HTTP/1.1
Host: catalog-jobs-dev.power.dev
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"type":"String","provider":"Undefined","date":"\/Date(-62135596800000-0000)\/","hour":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{}