| GET,OPTIONS | /v1/Material/{MaterialID}/Projects |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| MaterialID | path | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Projects | 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 .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.
GET /v1/Material/{MaterialID}/Projects HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Projects":[{"ProjectID":0,"ProjectUID":"00000000000000000000000000000000","ProjectName":"String","ImageURL":"String","ImageKey":"String","ClientName":"String","ClientPhone":"String","ClientEmail":"String","ProjectManagerID":0,"ProjectManagerName":"String","StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","ActualStartDate":"0001-01-01T00:00:00.0000000","ActualEndDate":"0001-01-01T00:00:00.0000000","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-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","ProjectDescription":"String","Scope":"String","StatusId":0}]}