Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
GET POST | /system/apiVersionHistory |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ApiVersionInfoRequest
{
public Integer maxVersions = null;
public Date fromDate = null;
public Integer getMaxVersions() { return maxVersions; }
public ApiVersionInfoRequest setMaxVersions(Integer value) { this.maxVersions = value; return this; }
public Date getFromDate() { return fromDate; }
public ApiVersionInfoRequest setFromDate(Date value) { this.fromDate = value; return this; }
}
public static class ApiVersionInfoResult
{
public ArrayList<ApiVersionInfo> history = null;
public ArrayList<ApiVersionInfo> getHistory() { return history; }
public ApiVersionInfoResult setHistory(ArrayList<ApiVersionInfo> value) { this.history = value; return this; }
}
public static class ApiVersionInfo
{
public String version = null;
public Date releaseTime = null;
public String versionDescription = null;
public String versionDetails = null;
public ArrayList<ApiCodeChangesInfo> codeChanges = null;
public String getVersion() { return version; }
public ApiVersionInfo setVersion(String value) { this.version = value; return this; }
public Date getReleaseTime() { return releaseTime; }
public ApiVersionInfo setReleaseTime(Date value) { this.releaseTime = value; return this; }
public String getVersionDescription() { return versionDescription; }
public ApiVersionInfo setVersionDescription(String value) { this.versionDescription = value; return this; }
public String getVersionDetails() { return versionDetails; }
public ApiVersionInfo setVersionDetails(String value) { this.versionDetails = value; return this; }
public ArrayList<ApiCodeChangesInfo> getCodeChanges() { return codeChanges; }
public ApiVersionInfo setCodeChanges(ArrayList<ApiCodeChangesInfo> value) { this.codeChanges = value; return this; }
}
public static class ApiCodeChangesInfo
{
public String codeChangesDescription = null;
public String codeChangesDetails = null;
public Date changesRegistered = null;
public String getCodeChangesDescription() { return codeChangesDescription; }
public ApiCodeChangesInfo setCodeChangesDescription(String value) { this.codeChangesDescription = value; return this; }
public String getCodeChangesDetails() { return codeChangesDetails; }
public ApiCodeChangesInfo setCodeChangesDetails(String value) { this.codeChangesDetails = value; return this; }
public Date getChangesRegistered() { return changesRegistered; }
public ApiCodeChangesInfo setChangesRegistered(Date value) { this.changesRegistered = value; return this; }
}
}
Java ApiVersionInfoRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<ApiVersionInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<FromDate>0001-01-01T00:00:00</FromDate>
<MaxVersions>0</MaxVersions>
</ApiVersionInfoRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ApiVersionInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <History> <ApiVersionInfo> <CodeChanges> <ApiCodeChangesInfo> <ChangesRegistered>0001-01-01T00:00:00</ChangesRegistered> <CodeChangesDescription>String</CodeChangesDescription> <CodeChangesDetails>String</CodeChangesDetails> </ApiCodeChangesInfo> </CodeChanges> <ReleaseTime>0001-01-01T00:00:00</ReleaseTime> <Version>String</Version> <VersionDescription>String</VersionDescription> <VersionDetails>String</VersionDetails> </ApiVersionInfo> </History> </ApiVersionInfoResult>