POST | /optimizer/project-info |
---|
import Foundation
import ServiceStack
public class CommonOptimizerProjectInfoRequest : CommonOptimizerPortalRequestBase
{
required public init(){ super.init() }
required public init(from decoder: Decoder) throws {
try super.init(from: decoder)
}
public override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
}
}
public class CommonOptimizerPortalRequestBase : Codable
{
public var projectId:String
public var isBatchSimulation:Bool
public var force:Bool
public var disableEBSSpot:Bool
public var isServerless:Bool
public var apiActionId:String
public var nodeId:Int
public var parallelProject:Int
public var parallelYears:Int
public var ensureExlusive:Int
required public init(){}
}
Swift CommonOptimizerProjectInfoRequest 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 /optimizer/project-info HTTP/1.1
Host: dev-optimization.power.dev
Accept: application/json
Content-Type: application/json
Content-Length: length
{"projectId":"00000000000000000000000000000000","isBatchSimulation":false,"force":false,"disableEBSSpot":false,"isServerless":false,"apiActionId":"00000000000000000000000000000000","nodeId":0,"parallelProject":0,"parallelYears":0,"ensureExlusive":0}