rest icon indicating copy to clipboard operation
rest copied to clipboard

Add Custom Notification API

Open jooooaah opened this issue 2 years ago • 2 comments

Hey Guys, developing a small external enhanchement for users - a PUT for Notifications would be great. Wha do you think about? greets

jooooaah avatar Mar 26 '22 17:03 jooooaah

Can you please describe it the desired endpoint in a little more detail?

luke- avatar Mar 26 '22 17:03 luke-

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':

jooooaah avatar Mar 28 '22 18:03 jooooaah