-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenAPI.yaml
49 lines (49 loc) · 1.17 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
openapi: 3.0.1
info:
title: Microservice-Template
description: This is a sample documentation for the Unline Microservice-Template
termsOfService: ""
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 1.0.0
servers:
- url: https://localhost:8080/v1
- url: http://localhost:8080/v1
tags:
- name: version
description: Will show debug info
paths:
/version:
get:
tags:
- version
summary: Get debug info
description: This will return JSON of service name, Port, version
operationId: getVersion
responses:
200:
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
500:
description: Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
components:
schemas:
ApiResponse:
type: object
properties:
code:
type: integer
format: int32
type:
type: string
message:
type: object
properties: {}