forked from csoltenborn/web_entwicklung_BFAX422A
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.yaml
52 lines (52 loc) · 1.12 KB
/
api.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
openapi: 3.0.0
servers:
- url: 'http://chat.fhdw.de'
info:
description: >-
Chat API.
version: 1.0.0
title: OpenAPI Chats
tags:
- name: chat
description: Everything about Chats
paths:
/chat:
post:
tags:
- chat
summary: Get answer to the passed message
operationId: chat
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Message'
required: true
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/Message'
'405':
description: Invalid input
components:
schemas:
Message:
title: Chat message
description: A message, with author and date
type: object
properties:
timestamp:
type: string
format: date-time
message:
type: string
author:
type: string
description: Author of the message
enum:
- user
- system
- ai