Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
GET POST | /system/apiVersionHistory |
---|
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 ApiVersionInfoRequest:
max_versions: Optional[int] = None
from_date: Optional[datetime.datetime] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ApiVersionInfoResult:
history: Optional[List[ApiVersionInfo]] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ApiVersionInfo:
version: Optional[str] = None
release_time: Optional[datetime.datetime] = None
version_description: Optional[str] = None
version_details: Optional[str] = None
code_changes: Optional[List[ApiCodeChangesInfo]] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ApiCodeChangesInfo:
code_changes_description: Optional[str] = None
code_changes_details: Optional[str] = None
changes_registered: Optional[datetime.datetime] = None
Python ApiVersionInfoRequest 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.
POST /system/apiVersionHistory HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
maxVersions: 0,
fromDate: 0001-01-01
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { history: [ { version: String, releaseTime: 0001-01-01, versionDescription: String, versionDetails: String, codeChanges: [ { codeChangesDescription: String, codeChangesDetails: String, changesRegistered: 0001-01-01 } ] } ] }