-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
55 lines (54 loc) · 1.49 KB
/
Copy pathopenapi.yaml
File metadata and controls
55 lines (54 loc) · 1.49 KB
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
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
openapi: 3.0.3
info:
title: Server API
version: 0.0.1
paths:
/ping:
get:
tags:
- Server
summary: ping
operationId: Server_Ping
responses:
"200":
description: OK
content: {}
/v1/user/create:
post:
tags:
- Server
summary: create user
operationId: Server_CreateUser
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/api.server.CreateUserReq'
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/api.server.CreateUserReply'
components:
schemas:
api.server.CreateUserReply:
type: object
properties:
id:
type: string
api.server.CreateUserReq:
type: object
properties:
name:
type: string
lastName:
type: string
email:
type: string
tags:
- name: Server