-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi-example.yaml
More file actions
29 lines (29 loc) · 989 Bytes
/
openapi-example.yaml
File metadata and controls
29 lines (29 loc) · 989 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
openapi: 3.0.0
info:
title: Sample API
description: Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML.
version: 0.1.9
servers:
- url: http://api.example.com/v1
description: Optional server description, e.g. Main (production) server
- url: http://staging-api.example.com
description: Optional server description, e.g. Internal staging server for testing
paths:
/users:
post:
summary: Creates a new user.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
id:
type: string
format: string
/users/{id}:
get:
summary: Gets a user.
patch:
summary: Gets a user.