| GET,OPTIONS | /v1/projects/{ProjectID}/qc-summary |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class QcSummary:
tests_this_month: int = 0
tests_total: int = 0
pass_count: int = 0
fail_count: int = 0
graded_count: int = 0
pass_rate: int = 0
retest_count: int = 0
open_ncr_count: int = 0
pending_hold_points: int = 0
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class QcSummaryResponse:
response_status: Optional[ResponseStatus] = None
project_i_d: int = 0
summary: Optional[QcSummary] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class QcSummaryRequest:
project_i_d: int = 0
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}/qc-summary 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
}
},
ProjectID: 0,
Summary:
{
TestsThisMonth: 0,
TestsTotal: 0,
PassCount: 0,
FailCount: 0,
GradedCount: 0,
PassRate: 0,
RetestCount: 0,
OpenNcrCount: 0,
PendingHoldPoints: 0
}
}