| GET | /dailychecks | Run daily checks for API |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class DailyCheckRequest implements IGet
{
}
public static class DailyCheckResponse
{
public ArrayList<DailyCheckResult> Results = new ArrayList<DailyCheckResult>();
public ArrayList<DailyCheckResult> getResults() { return Results; }
public DailyCheckResponse setResults(ArrayList<DailyCheckResult> value) { this.Results = value; return this; }
}
public static class DailyCheckResult
{
public String CheckName = null;
public Boolean Status = null;
public String Message = null;
public ArrayList<String> Details = null;
public String getCheckName() { return CheckName; }
public DailyCheckResult setCheckName(String value) { this.CheckName = value; return this; }
public Boolean isStatus() { return Status; }
public DailyCheckResult setStatus(Boolean value) { this.Status = value; return this; }
public String getMessage() { return Message; }
public DailyCheckResult setMessage(String value) { this.Message = value; return this; }
public ArrayList<String> getDetails() { return Details; }
public DailyCheckResult setDetails(ArrayList<String> value) { this.Details = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /dailychecks HTTP/1.1 Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Results":[{}]}