-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Expand file tree
/
Copy pathopenapi.yaml
More file actions
37 lines (37 loc) · 798 Bytes
/
openapi.yaml
File metadata and controls
37 lines (37 loc) · 798 Bytes
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
openapi: 3.0.3
info:
title: optional body
version: 1.0.1
servers:
- url: https://api.123.com/api/v1
tags:
- description: Everything about API functions
name: just-api
paths:
/silly:
post:
operationId: send_optional_payload
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/Payload"
responses:
"200":
content:
application/text:
schema:
type: string
description: Successful operation
tags:
- just-api
components:
schemas:
Payload:
example:
token: token
properties:
token:
description: Some kind of token - usually received by Email
type: string
type: object