Required role: | REGISUserRole |
POST | /Audit |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using regis.ClassLibrary.Requests;
using regis.ClassLibrary.Responses;
namespace regis.ClassLibrary.Requests
{
public partial class AuditRequest
{
public virtual string uuid { get; set; }
public virtual DateTime created_since_date { get; set; }
public virtual string controller { get; set; }
public virtual string action { get; set; }
public virtual string item_id { get; set; }
}
}
namespace regis.ClassLibrary.Responses
{
public partial class AuditResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual string uuid { get; set; }
public virtual string ip_address { get; set; }
public virtual string url { get; set; }
public virtual string controller { get; set; }
public virtual string action { get; set; }
public virtual string item_id { get; set; }
public virtual DateTime timestamp { get; set; }
}
public partial class AuditsResponse
{
public AuditsResponse()
{
audits = new List<AuditResponse>{};
}
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual List<AuditResponse> audits { get; set; }
}
}
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 /Audit HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
uuid: String,
created_since_date: 0001-01-01,
controller: String,
action: String,
item_id: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { responseStatus: { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } }, audits: [ { responseStatus: { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } }, uuid: String, ip_address: String, url: String, controller: String, action: String, item_id: String, timestamp: 0001-01-01 } ] }