@@ -11,6 +11,7 @@ servers:
11
11
paths :
12
12
/api/v1/tilgjengelige-bekreftelser :
13
13
get :
14
+ operationId : getTilgjengeligBekreftelser
14
15
description : " Endepunkt for å hende tilgjengelige bekreftelser for innlogget sluttbruker"
15
16
parameters :
16
17
- name : " traceparent"
34
35
schema :
35
36
$ref : " #/components/schemas/ProblemDetails"
36
37
post :
38
+ operationId : postTilgjengeligBekreftelser
37
39
description : " Endepunkt for å hende tilgjengelige bekreftelser for en arbeidssøker"
38
40
parameters :
39
41
- name : " traceparent"
@@ -56,6 +58,12 @@ paths:
56
58
application/json :
57
59
schema :
58
60
$ref : " #/components/schemas/TilgjengeligBekreftelserResponse"
61
+ " 400 " :
62
+ description : " Bad Request"
63
+ content :
64
+ application/json :
65
+ schema :
66
+ $ref : " #/components/schemas/ProblemDetails"
59
67
" 403 " :
60
68
description : " Forbidden"
61
69
content :
64
72
$ref : " #/components/schemas/ProblemDetails"
65
73
/api/v1/bekreftelse :
66
74
post :
75
+ operationId : postMottaBekreftelse
67
76
description : " Endepunkt for å registrere en bekreftelse for en arbeidssøker"
68
77
parameters :
69
78
- name : " traceparent"
@@ -77,11 +86,17 @@ paths:
77
86
content :
78
87
application/json :
79
88
schema :
80
- $ref : " #/components/schemas/BekreftelseRequest "
89
+ $ref : " #/components/schemas/MottaBekreftelseRequest "
81
90
required : true
82
91
responses :
83
92
" 200 " :
84
93
description : " OK"
94
+ " 400 " :
95
+ description : " Bad Request"
96
+ content :
97
+ application/json :
98
+ schema :
99
+ $ref : " #/components/schemas/ProblemDetails"
85
100
" 403 " :
86
101
description : " Forbidden"
87
102
content :
@@ -90,6 +105,7 @@ paths:
90
105
$ref : " #/components/schemas/ProblemDetails"
91
106
/internal/isAlive :
92
107
get :
108
+ operationId : getIsAlive
93
109
description : " Service is alive probe"
94
110
responses :
95
111
" 503 " :
@@ -106,6 +122,7 @@ paths:
106
122
$ref : " #/components/schemas/HealthStatus"
107
123
/internal/isReady :
108
124
get :
125
+ operationId : getIsReady
109
126
description : " Service is ready probe"
110
127
responses :
111
128
" 503 " :
@@ -122,6 +139,7 @@ paths:
122
139
$ref : " #/components/schemas/HealthStatus"
123
140
/internal/metrics :
124
141
get :
142
+ operationId : getMetrics
125
143
description : " Prometheus metrics"
126
144
responses :
127
145
" 200 " :
@@ -137,8 +155,6 @@ components:
137
155
properties :
138
156
identitetsnummer :
139
157
type : " string"
140
- required :
141
- - " identitetsnummer"
142
158
example :
143
159
identitetsnummer : " 01017012345"
144
160
TilgjengeligBekreftelserResponse :
@@ -170,7 +186,7 @@ components:
170
186
bekreftelseId : " ec6b5a10-b67c-42c1-b6e7-a642c36bd78e"
171
187
gjelderFra : " 2020-01-01T11:22:33.444Z"
172
188
gjelderTil : " 2020-02-02T11:22:33.444Z"
173
- BekreftelseRequest :
189
+ MottaBekreftelseRequest :
174
190
type : " object"
175
191
properties :
176
192
identitetsnummer :
@@ -183,7 +199,6 @@ components:
183
199
vilFortsetteSomArbeidssoeker :
184
200
type : " boolean"
185
201
required :
186
- - " identitetsnummer"
187
202
- " bekreftelseId"
188
203
- " harJobbetIDennePerioden"
189
204
- " vilFortsetteSomArbeidssoeker"
@@ -195,31 +210,33 @@ components:
195
210
ProblemDetails :
196
211
type : object
197
212
properties :
198
- type :
213
+ id :
199
214
type : " string"
200
- code :
215
+ format : " uuid"
216
+ type :
201
217
type : " string"
218
+ format : " uri"
219
+ status :
220
+ type : " integer"
202
221
title :
203
222
type : " string"
204
- status :
205
- type : " number"
206
223
detail :
207
224
type : " string"
208
225
instance :
209
226
type : " string"
210
227
required :
228
+ - id
211
229
- type
212
- - code
213
- - title
214
230
- status
231
+ - title
215
232
- detail
216
233
- instance
217
234
example :
218
- type : " about:blank"
219
- code : " BRUKER_HAR_IKKE_TILGANG"
220
- title : " Forbidden"
235
+ id : " 3cd944fb-6187-41a8-91b2-b172f2baf890"
236
+ type : " urn:paw:sikkerhet:bruker-har-ikke-tilgang"
221
237
status : 403
222
- detail : " Access denied"
238
+ title : " Forbidden"
239
+ detail : " Bruker har ikke tilgang"
223
240
instance : " /api/endpoint"
224
241
HealthStatus :
225
242
type : " string"
0 commit comments