| Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/Rfp/SchedulePreview |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class RfpSchedulePreviewRequest
{
open var Proposal:ProjectProposal? = null
}
open class ProjectProposal
{
open var RfpDocumentID:Int? = null
open var ProjectName:String? = null
open var ClientName:String? = null
open var ProjectType:String? = null
open var ProjectLocation:String? = null
open var Scope:String? = null
open var ProjectDescription:String? = null
open var ContractDurationDays:Int? = null
open var BidDueDate:String? = null
open var EstimatedStartDate:Date? = null
open var EstimatedEndDate:Date? = null
open var Tasks:ArrayList<ProposedTask> = ArrayList<ProposedTask>()
}
open class ProposedTask
{
open var Seq:Int? = null
open var Name:String? = null
open var Category:String? = null
open var Quantity:Double? = null
open var Unit:String? = null
open var SourceItemNumber:String? = null
open var SourceReference:String? = null
open var Notes:String? = null
open var Resourcing:TaskResourcing? = null
open var DurationDays:Double? = null
open var DependsOn:ArrayList<Int> = ArrayList<Int>()
open var EstimatedStartDate:Date? = null
open var EstimatedEndDate:Date? = null
}
open class TaskResourcing
{
open var Positions:ArrayList<ResourcedPosition> = ArrayList<ResourcedPosition>()
open var Equipment:ArrayList<ResourcedEquipment> = ArrayList<ResourcedEquipment>()
open var Materials:ArrayList<ResourcedMaterial> = ArrayList<ResourcedMaterial>()
}
open class ResourcedPosition
{
open var PositionTag:String? = null
open var Hours:Double? = null
open var Headcount:Int? = null
open var SourceReference:String? = null
open var Notes:String? = null
open var IsInCatalog:Boolean? = null
open var ContactID:Int? = null
}
open class ResourcedEquipment
{
open var EquipmentID:Int? = null
open var EquipmentName:String? = null
open var MakeModel:String? = null
open var Quantity:Double? = null
open var DurationDays:Double? = null
open var SourceReference:String? = null
open var Notes:String? = null
open var IsInCatalog:Boolean? = null
open var SuggestedEquipmentID:Int? = null
open var SuggestedEquipmentName:String? = null
}
open class ResourcedMaterial
{
open var MaterialID:Int? = null
open var MaterialName:String? = null
open var MakeModel:String? = null
open var Quantity:Double? = null
open var Unit:String? = null
open var SourceReference:String? = null
open var Notes:String? = null
open var IsInCatalog:Boolean? = null
open var SuggestedMaterialID:Int? = null
open var SuggestedMaterialName:String? = null
}
open class RfpProposalResponse
{
open var ResponseStatus:ResponseStatus? = null
open var RfpDocumentID:Int? = null
open var Proposal:ProjectProposal? = null
open var CrewPlan:ArrayList<CrewPlanLine> = ArrayList<CrewPlanLine>()
}
open class CrewPlanLine
{
open var PositionTag:String? = null
open var Needed:Int? = null
open var NaiveTotal:Int? = null
open var TaskAssignments:Int? = null
}
Kotlin RfpSchedulePreviewRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Rfp/SchedulePreview HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Proposal:
{
RfpDocumentID: 0,
ProjectName: String,
ClientName: String,
ProjectType: String,
ProjectLocation: String,
Scope: String,
ProjectDescription: String,
ContractDurationDays: 0,
BidDueDate: String,
EstimatedStartDate: 0001-01-01,
EstimatedEndDate: 0001-01-01,
Tasks:
[
{
Seq: 0,
Name: String,
Category: String,
Quantity: 0,
Unit: String,
SourceItemNumber: String,
SourceReference: String,
Notes: String,
Resourcing:
{
Positions:
[
{
PositionTag: String,
Hours: 0,
Headcount: 0,
SourceReference: String,
Notes: String,
IsInCatalog: False,
ContactID: 0
}
],
Equipment:
[
{
EquipmentID: 0,
EquipmentName: String,
MakeModel: String,
Quantity: 0,
DurationDays: 0,
SourceReference: String,
Notes: String,
IsInCatalog: False,
SuggestedEquipmentID: 0,
SuggestedEquipmentName: String
}
],
Materials:
[
{
MaterialID: 0,
MaterialName: String,
MakeModel: String,
Quantity: 0,
Unit: String,
SourceReference: String,
Notes: String,
IsInCatalog: False,
SuggestedMaterialID: 0,
SuggestedMaterialName: String
}
]
},
DurationDays: 0,
DependsOn:
[
0
],
EstimatedStartDate: 0001-01-01,
EstimatedEndDate: 0001-01-01
}
]
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
RfpDocumentID: 0,
Proposal:
{
RfpDocumentID: 0,
ProjectName: String,
ClientName: String,
ProjectType: String,
ProjectLocation: String,
Scope: String,
ProjectDescription: String,
ContractDurationDays: 0,
BidDueDate: String,
EstimatedStartDate: 0001-01-01,
EstimatedEndDate: 0001-01-01,
Tasks:
[
{
Seq: 0,
Name: String,
Category: String,
Quantity: 0,
Unit: String,
SourceItemNumber: String,
SourceReference: String,
Notes: String,
Resourcing:
{
Positions:
[
{
PositionTag: String,
Hours: 0,
Headcount: 0,
SourceReference: String,
Notes: String,
IsInCatalog: False,
ContactID: 0
}
],
Equipment:
[
{
EquipmentID: 0,
EquipmentName: String,
MakeModel: String,
Quantity: 0,
DurationDays: 0,
SourceReference: String,
Notes: String,
IsInCatalog: False,
SuggestedEquipmentID: 0,
SuggestedEquipmentName: String
}
],
Materials:
[
{
MaterialID: 0,
MaterialName: String,
MakeModel: String,
Quantity: 0,
Unit: String,
SourceReference: String,
Notes: String,
IsInCatalog: False,
SuggestedMaterialID: 0,
SuggestedMaterialName: String
}
]
},
DurationDays: 0,
DependsOn:
[
0
],
EstimatedStartDate: 0001-01-01,
EstimatedEndDate: 0001-01-01
}
]
},
CrewPlan:
[
{
PositionTag: String,
Needed: 0,
NaiveTotal: 0,
TaskAssignments: 0
}
]
}