-
Notifications
You must be signed in to change notification settings - Fork 0
/
api-definition.yml
50 lines (47 loc) · 1.04 KB
/
api-definition.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
openapi: 3.0.0
info:
description: golang-service-template
title: "golang-service-template"
version: "1.0.0"
paths:
/sample:
get:
tags:
- Sample
summary: Sample endpoint definition
operationId: SampleHandler
responses:
'200':
description: Dummy sample response
put:
tags:
- Sample
summary: Sample endpoint definition
operationId: SampleHandler
responses:
'200':
description: Dummy sample response
/sample2:
post:
tags:
- Sample
summary: Sample endpoint definition
operationId: postHandler
responses:
'200':
description: Dummy sample response
components:
schemas:
ApiMessage:
type: object
properties:
code:
description: "Status code"
type: "integer"
subCode:
description: "Api specific status code"
type: "integer"
data:
example: "{}"
description: "Backend content"
type: "object"