| POST | /shadow-price/ercot |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ShadowPricesErcotRequest
{
public PriceMarketType marketType = null;
public Date date = null;
public PriceMarketType getMarketType() { return marketType; }
public ShadowPricesErcotRequest setMarketType(PriceMarketType value) { this.marketType = value; return this; }
public Date getDate() { return date; }
public ShadowPricesErcotRequest setDate(Date value) { this.date = value; return this; }
}
public static enum PriceMarketType
{
Undefined(0),
Realtime(1),
DayAhead(10),
Dart(101);
private final int value;
PriceMarketType(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
}
Java ShadowPricesErcotRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /shadow-price/ercot HTTP/1.1
Host: catalog-jobs-dev.power.dev
Accept: application/json
Content-Type: application/json
Content-Length: length
{"marketType":"Undefined","date":"\/Date(-62135596800000-0000)\/"}