Audit Service v1.0.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
A microservice for audit logging
Base URLs:
Authentication¶
- HTTP Authentication, scheme: bearer
AuditController
AuditController.count¶
Code samples
GET /audit-logs/count
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
where | query | object | false | none |
Example responses
200 Response
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | AuditLog model count | loopback.Count |
AuditController.findById¶
Code samples
GET /audit-logs/{id}
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
filter | query | audit_logs.Filter | false | none |
Example responses
200 Response
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | AuditLog model instance | AuditLogWithRelations |
AuditController.create¶
Code samples
POST /audit-logs
Body parameter
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | NewAuditLog | false | none |
Example responses
200 Response
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | AuditLog model instance | AuditLog |
AuditController.find¶
Code samples
GET /audit-logs
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
filter | query | audit_logs.Filter1 | false | none |
Example responses
200 Response
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Array of AuditLog model instances | Inline |
Response Schema
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | [AuditLogWithRelations] | false | none | [(tsType: AuditLogWithRelations, schemaOptions: { includeRelations: true })] |
» AuditLogWithRelations | AuditLogWithRelations | false | none | (tsType: AuditLogWithRelations, schemaOptions: { includeRelations: true }) |
»» id | string | false | none | none |
»» action | string | true | none | none |
»» actedAt | string(date-time) | true | none | none |
»» actedOn | string | false | none | none |
»» actionKey | string | true | none | none |
»» entityId | string | true | none | none |
»» actor | string | true | none | none |
»» before | object | false | none | none |
»» after | object | false | none | none |
»» actionGroup | string | false | none | none |
Schemas¶
AuditLog
AuditLog
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | string | false | none | none |
action | string | true | none | none |
actedAt | string(date-time) | true | none | none |
actedOn | string | false | none | none |
actionKey | string | true | none | none |
entityId | string | true | none | none |
actor | string | true | none | none |
before | object | false | none | none |
after | object | false | none | none |
actionGroup | string | false | none | none |
NewAuditLog
NewAuditLog
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
action | string | true | none | none |
actedAt | string(date-time) | true | none | none |
actedOn | string | false | none | none |
actionKey | string | true | none | none |
entityId | string | true | none | none |
actor | string | true | none | none |
before | object | false | none | none |
after | object | false | none | none |
actionGroup | string | false | none | none |
AuditLogWithRelations
AuditLogWithRelations
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | string | false | none | none |
action | string | true | none | none |
actedAt | string(date-time) | true | none | none |
actedOn | string | false | none | none |
actionKey | string | true | none | none |
entityId | string | true | none | none |
actor | string | true | none | none |
before | object | false | none | none |
after | object | false | none | none |
actionGroup | string | false | none | none |
loopback.Count
loopback.Count
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
count | number | false | none | none |
audit_logs.Filter
audit_logs.Filter
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
offset | integer | false | none | none |
limit | integer | false | none | none |
skip | integer | false | none | none |
order | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
fields | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | object | false | none | none |
»» id | boolean | false | none | none |
»» action | boolean | false | none | none |
»» actedAt | boolean | false | none | none |
»» actedOn | boolean | false | none | none |
»» actionKey | boolean | false | none | none |
»» entityId | boolean | false | none | none |
»» actor | boolean | false | none | none |
»» before | boolean | false | none | none |
»» after | boolean | false | none | none |
»» actionGroup | boolean | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
audit_logs.Filter1
audit_logs.Filter
Properties¶
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
offset | integer | false | none | none |
limit | integer | false | none | none |
skip | integer | false | none | none |
order | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
where | object | false | none | none |
fields | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | object | false | none | none |
»» id | boolean | false | none | none |
»» action | boolean | false | none | none |
»» actedAt | boolean | false | none | none |
»» actedOn | boolean | false | none | none |
»» actionKey | boolean | false | none | none |
»» entityId | boolean | false | none | none |
»» actor | boolean | false | none | none |
»» before | boolean | false | none | none |
»» after | boolean | false | none | none |
»» actionGroup | boolean | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |