| GET,OPTIONS | /v1/projects/{ProjectID}/ncrs/{NcrID} |
|---|
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 Ncr() =
member val NcrID:Int32 = new Int32() with get,set
member val NcrUID:Guid = new Guid() with get,set
member val ProjectID:Int32 = new Int32() with get,set
member val QcTestID:Nullable<Int32> = new Nullable<Int32>() with get,set
member val NcrNo:String = null with get,set
member val Title:String = null with get,set
member val Description:String = null with get,set
member val CostCode:String = null with get,set
member val Disposition:String = null with get,set
member val DispositionType:String = null with get,set
member val CorrectiveAction:String = null with get,set
member val DispositionedBy:String = null with get,set
member val DispositionedAt: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 TestNo:String = null with get,set
[<AllowNullLiteral>]
type NcrResponse() =
member val ResponseStatus:ResponseStatus = null with get,set
member val Ncr:Ncr = null with get,set
[<AllowNullLiteral>]
type NcrDetailRequest() =
member val ProjectID:Int32 = new Int32() with get,set
member val NcrID:Int32 = new Int32() with get,set
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/projects/{ProjectID}/ncrs/{NcrID} 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
}
},
Ncr:
{
NcrID: 0,
NcrUID: 00000000000000000000000000000000,
ProjectID: 0,
QcTestID: 0,
NcrNo: String,
Title: String,
Description: String,
CostCode: String,
Disposition: String,
DispositionType: String,
CorrectiveAction: String,
DispositionedBy: String,
DispositionedAt: 0001-01-01,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01,
TestNo: String
}
}