Events

API endpoint that allows viewing (PREMIS) events

GET /api/events/

http

GET /api/events/ HTTP/1.1
Host: localhost
Accept: application/json
Authorization: Basic YWRtaW46YWRtaW4=

curl

curl -i -X GET https://localhost/api/events/ -H "Accept: application/json" --user admin:admin

response

GET /api/events/ HTTP/1.1
Host: localhost
Accept: application/json
Authorization: Basic YWRtaW46YWRtaW4=

Event Types

API endpoint that allows viewing and editing (PREMIS) event types

GET /api/event-types/

http

GET /api/event-types/ HTTP/1.1
Host: localhost
Accept: application/json
Authorization: Basic YWRtaW46YWRtaW4=

curl

curl -i -X GET https://localhost/api/event-types/ -H "Accept: application/json" --user admin:admin

response

GET /api/event-types/ HTTP/1.1
Host: localhost
Accept: application/json
Authorization: Basic YWRtaW46YWRtaW4=
POST /api/event-types/

Cretes a new event type

Parameters:
  • EventType – A repository unique event identifier

  • EventDetail – A human readable description of the event type