| GET,OPTIONS | /v1/integrations/providers |
|---|
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 ProviderView:
key: Optional[str] = None
name: Optional[str] = None
category: Optional[str] = None
blurb: Optional[str] = None
mono: Optional[str] = None
auth_mode: Optional[str] = None
available: bool = False
status: Optional[str] = None
health: Optional[str] = None
status_detail: Optional[str] = None
account_label: Optional[str] = None
environment: Optional[str] = None
last_activity_at: Optional[datetime.datetime] = None
manage_route: Optional[str] = None
actions: List[str] = field(default_factory=list)
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class IntegrationsProvidersResponse:
providers: List[ProviderView] = field(default_factory=list)
connected_count: int = 0
needs_attention_count: int = 0
available_count: int = 0
response_status: Optional[ResponseStatus] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class IntegrationsProvidersRequest:
pass
Python IntegrationsProvidersRequest DTOs
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/integrations/providers HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Providers:
[
{
Key: String,
Name: String,
Category: String,
Blurb: String,
Mono: String,
AuthMode: String,
Available: False,
Status: String,
Health: String,
StatusDetail: String,
AccountLabel: String,
Environment: String,
LastActivityAt: 0001-01-01,
ManageRoute: String,
Actions:
[
String
]
}
],
ConnectedCount: 0,
NeedsAttentionCount: 0,
AvailableCount: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}