forked from za_litvu/NoticeBot
37 lines
938 B
YAML
37 lines
938 B
YAML
openapi: 3.0.0
|
|
info:
|
|
title: Бот Уведомлений
|
|
version: 1.0.0
|
|
servers:
|
|
- url: https://servicebot.cybercode.pro
|
|
- url: http://servicebot.cybercode.pro
|
|
|
|
paths:
|
|
/new_message:
|
|
post:
|
|
summary: добавить и отправить сообщение
|
|
parameters:
|
|
- name: message
|
|
in: query
|
|
description: текст сообщения
|
|
schema:
|
|
type: string
|
|
example: 'text message'
|
|
- name: Authorization
|
|
in: header
|
|
description: токен приложения
|
|
schema:
|
|
type: string
|
|
example: bedbda07-b047-4c48-ba0b-e3e86d7f959e
|
|
responses:
|
|
'201':
|
|
description: Successful response
|
|
'400':
|
|
description: Unsuccesful response
|
|
content:
|
|
plication/json: {}
|
|
'406':
|
|
description: Unsuccesful response
|
|
content:
|
|
plication/json: {}
|