forked from eyalFischel/SmartSaver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yml
41 lines (40 loc) · 1.05 KB
/
swagger.yml
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
openapi: '3.0.2'
info:
title: API service for managing budget and expenses app
version: '1.0'
servers:
- url: http://localhost:8000
paths:
/example:
post:
summary: An example of a post request.
parameters:
- in: header
name: X-API-Key
schema:
type: string
required: true
description: API key for authentication.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
example:
type: string
example: 'example'
responses:
'200':
description: Successfully created a new event.
'400':
description: Bad request. Invalid input data.
content:
application/json:
schema:
type: object
properties:
error:
type: string
example: Invalid input data.