regis

<back to all web services

AuditRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/Audit

export class AuditResponse
{
    public responseStatus: ResponseStatus;
    public uuid: string;
    public ip_address: string;
    public url: string;
    public controller: string;
    public action: string;
    public item_id: string;
    public timestamp: string;

    public constructor(init?: Partial<AuditResponse>) { (Object as any).assign(this, init); }
}

export class AuditsResponse
{
    public responseStatus: ResponseStatus;
    public audits: AuditResponse[];

    public constructor(init?: Partial<AuditsResponse>) { (Object as any).assign(this, init); }
}

export class AuditRequest
{
    public uuid: string;
    public created_since_date: string;
    public controller: string;
    public action: string;
    public item_id: string;

    public constructor(init?: Partial<AuditRequest>) { (Object as any).assign(this, init); }
}

TypeScript AuditRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + 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
		}
	]
}