-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser-management-api.yml
57 lines (56 loc) · 1.18 KB
/
user-management-api.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
openapi: "3.0.0"
info:
version: 1.0.0
title: go_flutter_exam User
license:
name: MIT
servers:
- url: http://localhost:8080/api/
paths:
/users:
get:
summary: get all user information
tags:
- users
parameters: []
responses:
'200':
description: return user information
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/User"
/user/add:
post:
summary: Create a new User
tags:
- addUser
parameters: []
requestBody: # リクエストボディ
description: user to create
content:
application/json:
schema: # POSTするオブジェクト
$ref: '#/components/schemas/User'
example:
name: Michel Roe
age: 23
responses:
'201':
description: CREATED
components:
schemas:
User:
required:
- name
- age
properties:
id:
type: string
name:
type: string
age:
type: integer
format: int64