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 .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 } ] } ] }