events: make notification read/update only

This commit is contained in:
Jens Langhammer
2021-01-14 16:51:24 +01:00
parent 812fe72e60
commit 9fe8554f28
2 changed files with 18 additions and 29 deletions

View File

@ -1029,22 +1029,6 @@ paths:
$ref: '#/definitions/Notification'
tags:
- events
post:
operationId: events_notifications_create
description: Notification Viewset
parameters:
- name: data
in: body
required: true
schema:
$ref: '#/definitions/Notification'
responses:
'201':
description: ''
schema:
$ref: '#/definitions/Notification'
tags:
- events
parameters: []
/events/notifications/{uuid}/:
get:
@ -7619,9 +7603,6 @@ definitions:
type: integer
Notification:
description: Notification Serializer
required:
- severity
- body
type: object
properties:
pk:
@ -7632,24 +7613,19 @@ definitions:
severity:
title: Severity
type: string
enum:
- notice
- warning
- alert
readOnly: true
body:
title: Body
type: string
minLength: 1
readOnly: true
created:
title: Created
type: string
format: date-time
readOnly: true
event:
title: Event
type: string
format: uuid
x-nullable: true
readOnly: true
seen:
title: Seen
type: boolean