rest
rest copied to clipboard
Add Custom Notification API
Hey Guys, developing a small external enhanchement for users - a PUT for Notifications would be great. Wha do you think about? greets
Can you please describe it the desired endpoint in a little more detail?
Should better known as POST wold be great :) - Beware, only copy&paste - never written a swagger script swagger/notification.yaml
paths:
/notification:
post:
tags:
- Notification
summary: Creates a new notification
description: ''
produces:
- application/json
parameters:
- name: body
in: body
description: The notification
required: true
schema:
type: object
required:
- data
properties:
data:
$ref: "#/definitions/Notification"
responses:
'200':
description: successful operation
schema:
$ref: "#/definitions/Notification"
'/post':