-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
58 lines (57 loc) · 1.68 KB
/
openapi.yaml
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
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
openapi: 3.0.3
info:
title: Agent API
version: 0.0.1
paths:
/devops:
get:
tags:
- Agent
operationId: Agent_UpdateAgent
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/api.agent.v1.UpdateAgentReply'
/user/register:
post:
tags:
- Agent
operationId: Agent_RegistryUser
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/api.agent.v1.CreateUserRequest'
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/api.agent.v1.CreateUserReply'
components:
schemas:
api.agent.v1.CreateUserReply:
type: object
properties:
result:
type: string
api.agent.v1.CreateUserRequest:
type: object
properties:
name:
type: string
age:
type: integer
format: int32
api.agent.v1.UpdateAgentReply:
type: object
properties: {}
tags:
- name: Agent