| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/Rfp/DiffReport |
|---|
import Foundation
import ServiceStack
public class RfpDiffReportRequest : Codable
{
required public init(){}
}
public class RfpDiffReportResponse : Codable
{
public var responseStatus:ResponseStatus
public var report:DiffReport
required public init(){}
}
public class DiffReport : Codable
{
public var approvalCount:Int
public var tasksAdded:[CountItem] = []
public var tasksRemoved:[CountItem] = []
public var positionsAdded:[CountItem] = []
public var positionsRemoved:[CountItem] = []
public var equipmentAdded:[CountItem] = []
public var equipmentRemoved:[CountItem] = []
public var materialsAdded:[CountItem] = []
public var materialsRemoved:[CountItem] = []
required public init(){}
}
public class CountItem : Codable
{
public var key:String
public var label:String
public var count:Int
required public init(){}
}
Swift RfpDiffReportRequest 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.
GET /v1/Rfp/DiffReport HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
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
}
},
Report:
{
ApprovalCount: 0,
TasksAdded:
[
{
Key: String,
Label: String,
Count: 0
}
],
TasksRemoved:
[
{
Key: String,
Label: String,
Count: 0
}
],
PositionsAdded:
[
{
Key: String,
Label: String,
Count: 0
}
],
PositionsRemoved:
[
{
Key: String,
Label: String,
Count: 0
}
],
EquipmentAdded:
[
{
Key: String,
Label: String,
Count: 0
}
],
EquipmentRemoved:
[
{
Key: String,
Label: String,
Count: 0
}
],
MaterialsAdded:
[
{
Key: String,
Label: String,
Count: 0
}
],
MaterialsRemoved:
[
{
Key: String,
Label: String,
Count: 0
}
]
}
}