Required role: | Admin |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
@ValidateRequest(Validator="IsAdmin")
public static class MigrateOldArtifacts implements IGet
{
public Integer limit = null;
public Integer getLimit() { return limit; }
public MigrateOldArtifacts setLimit(Integer value) { this.limit = value; return this; }
}
public static class MigrateOldArtifactsResponse
{
public ArrayList<String> results = new ArrayList<String>();
public ArrayList<String> failed = new ArrayList<String>();
public ResponseStatus responseStatus = null;
public ArrayList<String> getResults() { return results; }
public MigrateOldArtifactsResponse setResults(ArrayList<String> value) { this.results = value; return this; }
public ArrayList<String> getFailed() { return failed; }
public MigrateOldArtifactsResponse setFailed(ArrayList<String> value) { this.failed = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public MigrateOldArtifactsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/MigrateOldArtifacts HTTP/1.1
Host: blazordiffusion.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"limit":0}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"results":["String"],"failed":["String"],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}