-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yml
65 lines (64 loc) · 1.58 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
openapi: 3.0.2
info:
title: OdessaJs
description: Easily googled swagger.yaml
termsOfService: 'https://odessajs.org/'
version: v1.0.0
servers:
- url: 'http://localhost:3000'
description: Root server
variables:
projectName:
enum:
- test-project
- google-test
default: test-project
description: set project
paths:
/user:
get:
description: Get User
responses:
'200':
description: Just gets list of users
content:
application/json:
schema:
properties:
id:
example: 61798c29-d0e3-472f-91dd-db912e602249
type: string
name:
example: Babich
type: string
type: object
tags:
- users
'/user/{id}':
get:
description: Retrieves user by id
parameters:
- name: id
in: path
description: user id in uuid format
required: true
allowEmptyValue: false
schema:
type: string
format: uuid
responses:
'200':
description: Requested user data
content:
application/json:
schema:
properties:
id:
example: 61798c29-d0e3-472f-91dd-db912e602249
type: string
name:
example: Babich
type: string
type: object
tags:
- users