generated from ghga-de/microservice-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
95 lines (95 loc) · 2.59 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
title: Detail
type: array
title: HTTPValidationError
type: object
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
title: Location
type: array
msg:
title: Message
type: string
type:
title: Error Type
type: string
required:
- loc
- msg
- type
title: ValidationError
type: object
info:
description: A service providing well known values.
title: Well Known Values Service
version: 1.1.2
openapi: 3.1.0
paths:
/health:
get:
description: Used to test if this service is alive
operationId: health_health_get
responses:
'200':
content:
application/json:
schema: {}
description: Successful Response
summary: health
/values:
get:
description: Retrieves all values from the WellKnownsConfig class
operationId: retrieve_all_values_values_get
responses:
'200':
content:
application/json:
schema:
title: Response Retrieve All Values Values Get
type: object
description: Successful Response
summary: retrieve all configured values
/values/{value_name}:
get:
description: "Retrieves the given value from configuration\nArgs:\n value_name:\
\ the name of the value to be retrieved\n\nRaises:\n HTTPException 404\
\ when the specified value is not configured"
operationId: retrieve_value_values__value_name__get
parameters:
- in: path
name: value_name
required: true
schema:
title: Value Name
type: string
responses:
'200':
content:
application/json:
schema:
title: Response Retrieve Value Values Value Name Get
type: object
description: Successful Response
'404':
description: Raised when a value is passed in for 'value_name' that is not
configured or otherwise available.
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: retrieve a configured value
tags:
- name: WellKnownValuesService