Files
directus/packages/spec/specs/components/activity.yaml
2020-09-29 19:39:41 -03:00

61 lines
1.7 KiB
YAML

type: object
properties:
id:
description: Unique identifier for the object.
example: 2
type: integer
action:
description: Action that was performed.
example: update
type: string
enum:
[
authenticate,
comment,
upload,
create,
update,
delete,
soft-delete,
revert,
invalid-credentials,
]
action_by:
description: The user who caused this action.
oneOf:
- type: string
- $ref: "../openapi.yaml#/components/schemas/User"
nullable: true # States the SQL structure
action_on:
description: When the action happened.
example: "2019-12-05 22:52:09"
type: string
format: date-time
ip:
description: The IP address of the user at the time the action took place.
example: 160.72.72.58
oneOf:
- type: string
format: ipv4
- type: string
enum: [localhost]
user_agent:
description: User agent string of the browser the user used when the action took place.
example: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/78.0.3904.108 Safari/537.36
type: string
collection:
description: Collection identifier in which the item resides.
example: movies
type: string
item:
description: Unique identifier for the item the action applied to. This is always a string, even for integer primary keys.
example: "328"
type: string
comment:
description:
User comment. This will store the comments that show up in the right
sidebar of the item edit page in the admin app.
example: null
type: string
nullable: true