| POST,OPTIONS | /v1/ProjectSearch |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| filterStatus | body | int | No | |
| filterManager | body | int | No | |
| filterClientName | body | string | No | |
| filterStartBefore | body | DateTime | No | |
| filterStartAfter | body | DateTime | No | |
| filterEndBefore | body | DateTime | No | |
| filterEndAfter | body | DateTime | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Project | form | List<Project> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProjectID | form | int | No | |
| ProjectUID | form | Guid | No | |
| ProjectName | form | string | No | |
| ImageURL | form | string | No | |
| ImageKey | form | string | No | |
| ClientName | form | string | No | |
| ClientPhone | form | string | No | |
| ClientEmail | form | string | No | |
| ProjectManagerID | form | int | No | |
| ProjectManagerName | form | string | No | |
| StartDate | form | DateTime? | No | |
| EndDate | form | DateTime? | No | |
| ActualStartDate | form | DateTime? | No | |
| ActualEndDate | form | DateTime? | No | |
| JobCount | form | int | No | |
| CrewMemberCount | form | int | No | |
| EquipmentCount | form | int | No | |
| MaterialCount | form | int | No | |
| ProjectStatusID | form | short | No | |
| ProjectStatusDescription | form | string | No | |
| Budget | form | decimal | No | |
| CostToDate | form | decimal | No | |
| ProjectLocation | form | string | No | |
| ProjectType | form | string | No | |
| ProjectSponsor | form | string | No | |
| CreatedBy | form | string | No | |
| CreatedAt | form | DateTime? | No | |
| UpdatedAt | form | DateTime? | No | |
| ProjectDescription | form | string | No | |
| Scope | form | string | No | |
| StatusId | form | int | No |
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/ProjectSearch HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
filterStatus: 0,
filterManager: 0,
filterClientName: String,
filterStartBefore: 0001-01-01,
filterStartAfter: 0001-01-01,
filterEndBefore: 0001-01-01,
filterEndAfter: 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
}
},
Project:
[
{
ProjectID: 0,
ProjectUID: 00000000000000000000000000000000,
ProjectName: String,
ImageURL: String,
ImageKey: String,
ClientName: String,
ClientPhone: String,
ClientEmail: String,
ProjectManagerID: 0,
ProjectManagerName: String,
StartDate: 0001-01-01,
EndDate: 0001-01-01,
ActualStartDate: 0001-01-01,
ActualEndDate: 0001-01-01,
JobCount: 0,
CrewMemberCount: 0,
EquipmentCount: 0,
MaterialCount: 0,
ProjectStatusID: 0,
ProjectStatusDescription: String,
Budget: 0,
CostToDate: 0,
ProjectLocation: String,
ProjectType: String,
ProjectSponsor: String,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01,
ProjectDescription: String,
Scope: String,
StatusId: 0
}
]
}