Trendsic Platform Service

<back to all web services

QcTestListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/projects/{ProjectID}/qc-tests
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type QcTest() = 
        member val QcTestID:Int32 = new Int32() with get,set
        member val QcTestUID:Guid = new Guid() with get,set
        member val ProjectID:Int32 = new Int32() with get,set
        member val TestNo:String = null with get,set
        member val TestType:String = null with get,set
        member val Location:String = null with get,set
        member val CostCode:String = null with get,set
        member val Spec:String = null with get,set
        member val TargetValue:String = null with get,set
        member val ResultValue:String = null with get,set
        member val Result:String = null with get,set
        member val Lab:String = null with get,set
        member val ReportName:String = null with get,set
        member val Notes:String = null with get,set
        member val TestedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val CreatedBy:String = null with get,set
        member val CreatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val UpdatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val NcrCount:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type QcTestListResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val ProjectID:Int32 = new Int32() with get,set
        member val Tests:ResizeArray<QcTest> = new ResizeArray<QcTest>() with get,set

    [<AllowNullLiteral>]
    type QcTestListRequest() = 
        member val ProjectID:Int32 = new Int32() with get,set

F# QcTestListRequest 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.

GET /v1/projects/{ProjectID}/qc-tests 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"}},"ProjectID":0,"Tests":[{"QcTestID":0,"QcTestUID":"00000000000000000000000000000000","ProjectID":0,"TestNo":"String","TestType":"String","Location":"String","CostCode":"String","Spec":"String","TargetValue":"String","ResultValue":"String","Result":"String","Lab":"String","ReportName":"String","Notes":"String","TestedAt":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","NcrCount":0}]}