Power.Dev Optimization Services

<back to all web services

CommonOptimizerProjectInfoRequest

The following routes are available for this service:
POST/optimizer/project-info
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using powerDev.Optimization.ServiceModel;
using powerDev.Common.Models;

namespace powerDev.Common.Models
{
    public partial class CommonOptimizerPortalRequestBase
    {
        public virtual Guid ProjectId { get; set; }
        public virtual bool IsBatchSimulation { get; set; }
        public virtual bool Force { get; set; }
        public virtual bool DisableEBSSpot { get; set; }
        public virtual bool IsServerless { get; set; }
        public virtual Guid ApiActionId { get; set; }
        public virtual int NodeId { get; set; }
        public virtual int ParallelProject { get; set; }
        public virtual int ParallelYears { get; set; }
        public virtual int EnsureExlusive { get; set; }
    }

}

namespace powerDev.Optimization.ServiceModel
{
    public partial class CommonOptimizerProjectInfoRequest
        : CommonOptimizerPortalRequestBase
    {
    }

}

C# 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

HTTP + JSON

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}