| GET,OPTIONS | /v1/projects/{ProjectID}/ncrs/{NcrID} |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class Ncr
Public Overridable Property NcrID As Integer
Public Overridable Property NcrUID As Guid
Public Overridable Property ProjectID As Integer
Public Overridable Property QcTestID As Integer?
Public Overridable Property NcrNo As String
Public Overridable Property Title As String
Public Overridable Property Description As String
Public Overridable Property CostCode As String
Public Overridable Property Disposition As String
Public Overridable Property DispositionType As String
Public Overridable Property CorrectiveAction As String
Public Overridable Property DispositionedBy As String
Public Overridable Property DispositionedAt As Date?
Public Overridable Property CreatedBy As String
Public Overridable Property CreatedAt As Date?
Public Overridable Property UpdatedAt As Date?
Public Overridable Property TestNo As String
End Class
Public Partial Class NcrDetailRequest
Public Overridable Property ProjectID As Integer
Public Overridable Property NcrID As Integer
End Class
Public Partial Class NcrResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Ncr As Ncr
End Class
End Namespace
End Namespace
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
}
}