| GET | /v1/forms/go-sent |
|---|
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 FormGoSentRow:
id: int = 0
name: Optional[str] = None
position: Optional[str] = None
first_sent_at: Optional[str] = None
first_sent_by: Optional[str] = None
last_sent_at: Optional[str] = None
last_sent_by: Optional[str] = None
times: int = 0
how: Optional[str] = None
went: Optional[str] = None
where: Optional[str] = None
can_remove: bool = False
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class FormGoSentResponse:
rows: List[FormGoSentRow] = field(default_factory=list)
message: Optional[str] = None
response_status: Optional[ResponseStatus] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class FormGoSentRequest:
form_u_i_d: Optional[str] = None
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/forms/go-sent HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Rows:
[
{
Id: 0,
Name: String,
Position: String,
FirstSentAt: String,
FirstSentBy: String,
LastSentAt: String,
LastSentBy: String,
Times: 0,
How: String,
Went: String,
Where: String,
CanRemove: False
}
],
Message: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}