View on GitHub

MES Audit System

General purpose auditing system

Get Endpoints

These endpoints are to access audit logs. They require a National-level office with the audit permission, or audit_{service} for specific systems.

GET /v1/events

Provides a list of events, with optional filtering.

Params * token - Required. Parameter or cookie of user token. * user - ID of user to look up. * office - ID of office to look up. * service - Service to search. * dateStart - Starting date. * dateEnd - Ending date. * message - Search message text. * limit - Integer. Number of results to return, defaults to 100. * offset - Integer. Offset for results, defaults to 0.

Responses

GET /v1/events/{id}

Provides details of event, with references.

Params * {id} - Required. Numeric ID of a given event. * token - Required. Parameter or cookie of user token.

Responses

GET /v1/references

Provides a list of references for a given object.

Params * token - Required. Parameter or cookie of user token. * service - Required. Service name to search. * object - Required. Name of object to filter by. * objectId - Required. ID of object to filter by. * limit - Integer. Number of results to return, defaults to 100. * offset - Integer. Offset for results, defaults to 0.

Responses

GET /v1/references/{id}

Provides details of reference, with event.

Params * {id} - Required. Numeric ID of a given reference. * token - Required. Parameter or cookie of user token.

Responses