-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi_old.yaml
52 lines (49 loc) · 1.28 KB
/
openapi_old.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
info:
title: Akashic Logging Server
description: A simple logging server that receives log messages via HTTP POST requests.
version: 1.0.0
servers:
- url: http://localhost:5231
paths:
/post:
post:
summary: Send a log message
description: Send a log message to be processed and stored by the server.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LogMessage'
responses:
'200':
description: Log received and processed successfully
content:
text/plain:
schema:
type: string
example: "Log received and processed"
'400':
description: Invalid JSON data
'404':
description: Endpoint not found
components:
schemas:
LogMessage:
type: object
properties:
level:
type: string
enum: [DEBUG, INFO, WARNING, ERROR, CRITICAL]
default: INFO
description: The log level
message:
type: string
description: The log message content
name:
type: string
default: default
description: The logger name
required:
- message