forked from pensive-lake-recruiting/example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.yml
79 lines (78 loc) · 2.3 KB
/
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Intel contributions Copyright © 2021, Intel Corporation.
openapi: 3.0.3
info:
title: Example Microservice APIs
version: 0.1.0
servers:
- url: https://cloud.example.com/example
- url: http://cloud.example.com/example
paths:
/health:
get:
summary: Check health
description: ""
operationId: getHealth
responses:
200:
description: healthy
content:
application/json:
schema:
type: object
properties:
status:
type: string
enum:
- available
- unavailable
version:
type: string
description: "Version string ([<MAJOR>.<MINOR>.<PATCH>]-rev-[<COMMIT-SHA1>][-dirty]) containing the SemVer2.0 version of the service at the time of build, the commit short SHA of the monorepo when the service was built, and if it was dirty (uncommitted changes)"
example: "1.0.1-rev-4afebe8"
'4XX':
$ref: '#/components/responses/ErrorResponse'
'5XX':
$ref: '#/components/responses/ErrorResponse'
/ready:
get:
summary: Check service readiness
description: ""
operationId: getReady
responses:
200:
description: ready response
content:
application/json:
schema:
$ref: '#/components/schemas/ReadyResponseBody'
'4XX':
$ref: '#/components/responses/ErrorResponse'
'5XX':
$ref: '#/components/responses/ErrorResponse'
components:
responses:
ErrorResponse:
description: global error response
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseBody'
schemas:
ErrorResponseBody:
required:
- title
- detail
type: object
properties:
title:
type: string
description: a brief, human-readable message about the error
detail:
type: string
description: a human-readable explanation of the error
ReadyResponseBody:
type: object
properties:
ready:
type: boolean
description: indicates if the service is ready