-
Notifications
You must be signed in to change notification settings - Fork 0
/
openApi.yml
573 lines (563 loc) · 16.5 KB
/
openApi.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
openapi: 3.0.0
info:
version: "1.0"
title: Dossier
description: ""
servers:
# Added by API Auto Mocking Plugin
- description: SwaggerHub API Auto Mocking
url: https://virtserver.swaggerhub.com/FILIPKOWAL_1/Dossier/1.0
security:
- cookieAuth: []
components:
securitySchemes:
cookieAuth: # arbitrary name for the security scheme
type: http
scheme: bearer # just for documentation puroses
bearerFormat: JWT
description: "JWT stored in cookie of name: token"
schemas:
File:
type: string
format: url
example: "https://www.example.com/cv.pdf"
RelationshipManager:
type: object
properties:
name:
type: string
example: Christoph Kowalski
phoneNumber:
type: string
example: +48 666 666 666
photo:
type: string
format: url
example: "https://www.example.com/photo.jpg"
Candidate:
type: object
properties:
firstName:
type: string
example: Christoph
lastName:
type: string
example: Kowalski
gender:
type: string
enum: ["m", "f"]
candidateImage:
type: string
example: "digitalent.cloud/images/123"
vacancyTitle:
type: string
example: Senior Consultant (CIO Advisory)
currentPosition:
type: string
example: Gardener Senior Consultant @Google
employerName:
type: string
example: atrete ag
birthDate:
type: string
example: 01.01.1990
candidateAge:
type: string
example: 30
address:
$ref: "#/components/schemas/Address"
phoneNumber:
type: string
example: +48 666 666 666
email:
type: string
example: [email protected]
linkedIn:
type: string
example: linkedin.com/in/example
desiredSalary:
type: string
example: 130 000 CHF
noticePeriod:
type: string
example: 1 month
reasonForChange:
type: string
example: Die basenet Informatik (grösster Teil der Gruppe) wurde verkauft und viele kleinere Gesellschaften konsolidiert. Er begleitet diese 'Carve-outs' der Gesellschaften, danach ist seine Rolle obsolet bzw. nicht mehr so spannend. Er hat deshalb entschieden außerhalb der Gruppe eine neue Herausforderung zu suchen. Das Dienstleistungsportfolio von atrete tönt sehr spannend und mit den. Werten von atrete kann er sich sehr gut identifizieren.
interviewSummary:
type: string
example: Christoph Pfister ist seit vielen Jahren in verschiedenen Rollen im Bereich Informationstechnik unterwegs und würde sein Wissen und seine Erfahrung sehr gerne als Berater einbringen. Es reizt ihn spannende sowie komplexe Problemstellungen zu lösen und er kann dank seiner Erfahrung eine holistische Betrachtung auf Challenges einnehmen. In seiner aktuellen Rolle als CIO der PEAX AG verantwortet er die Produktentwicklung und den Betrieb einer SaaS-Plattform für digitale Services. In seiner zusätzlichen Gruppen-Rolle durfte er in der Base-Net Unternehmensgruppe verschiedene große Projekte erfolgreich umsetzen. Er ist sich gewohnt mit einer 360 Grad Sicht zu agieren und dazu die verschiedenen Sachverhalte und Themen für unterschiedliche Ziel- und Anspruchsgruppen verständlich und nachvollziehbar aufzubereiten und zu präsentieren. Als Mitglied des Enterprise Architektur Boards ist er zudem verantwortlich für die Identifikation sowie Einführung von neuen Technologien und für regulatorische und IT-rechtliche Themen.
file:
$ref: "#/components/schemas/File"
dossierMessage:
type: string
example: "We will inform you which date Christoph has chosen so that you can send him the meeting invite. Please make sure to CC: [email protected] to the meeting"
desiredWorkload:
type: string
example: 100%
educationSummary:
type: string
format: html
example: "<ul>
<li>2021 Berufsbildnerkurs</li>
<li>2020 Dipl. Betriebswirtschafter HF</li>
</ul>"
User:
type: object
properties:
canDownloadPdf:
type: boolean
canViewSalary:
type: boolean
isInterviewLocationInputVisible:
description: Invitation form should show address/url input if true
type: boolean
example: false
isInterviewAvailabilityInputVisible:
description: Invitation form should show availability slots input if true
type: boolean
isInviteButtonVisible:
type: boolean
isRejectButtonVisible:
type: boolean
address:
$ref: "#/components/schemas/Address"
Address:
type: object
properties:
street:
type: string
example: Wiener Str. 55
city:
type: string
example: Bern
zip:
type: string
example: 30-101
state:
type: string
example: Bern
region:
type: string
example: Western Part of Switzerland
country:
type: string
example: Switzerland
geoCoordinates:
$ref: "#/components/schemas/GeoCoordinates"
GeoCoordinate:
pattern: ^(-?\d+(\.\d+)?)
type: string
example: "47.4708538"
GeoCoordinates:
type: object
properties:
latitude:
$ref: "#/components/schemas/GeoCoordinate"
longitude:
$ref: "#/components/schemas/GeoCoordinate"
paths:
/auth/sendCode/{id}:
post:
summary: Request a login code
operationId: requestLoginCode
security: [] # This endpoint doesn't require authentication
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
"200":
description: Code sent to the user's phone and email
"400":
description: Bad request
/auth/login/{id}:
post:
summary: Login with a code
operationId: login
security: []
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
code:
type: string
responses:
"200":
description: Successful operation
headers:
Set-Cookie:
schema:
type: string
example: "token={tokenvalue}; HttpOnly"
"400":
description: Bad request
content:
application/json:
schema:
type: object
properties:
error:
type: string
"403":
description: Wrong code
content:
application/json:
schema:
type: object
properties:
error:
type: string
/auth/isLoggedIn/{id}:
get:
summary: Check if the user is logged in (check token in cookie validity)
operationId: isLoggedIn
parameters:
- name: token
in: cookie
description: The JWT token used for authentication
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
responses:
"200":
description: Successful operation
content:
application/json:
schema:
type: object
properties:
isLoggedIn:
type: boolean
"400":
description: Bad request
/auth/logout/{id}:
post:
summary: Logout
operationId: logout
security: []
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
"200":
description: Successful operation
"400":
description: Bad request
/{locale}/candidate/{id}:
get:
summary: Retrieve a candidate information
operationId: getResource
parameters:
- name: locale
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/Candidate"
"400":
description: Bad request
content:
application/json:
schema:
type: object
properties:
error:
type: string
"401":
description: Unauthorized
"410":
description: Gone
content:
application/json:
schema:
type: object
properties:
error:
type: string
/{locale}/candidate/{id}/pdf:
get:
summary: Download a candidate's dossier as a PDF
operationId: downloadPdf
parameters:
- name: locale
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/File"
"400":
description: Bad request
content:
application/json:
schema:
type: object
properties:
error:
type: string
"401":
description: Unauthorized
"410":
description: Gone
content:
application/json:
schema:
type: object
properties:
error:
type: string
/{locale}/user/{id}:
get:
summary: Retrieve user information
operationId: getUser
parameters:
- name: locale
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/User"
"400":
description: Bad request
content:
application/json:
schema:
type: object
properties:
error:
type: string
"401":
description: Unauthorized
"410":
description: Gone
content:
application/json:
schema:
type: object
properties:
error:
type: string
/{locale}/relationshipManager/{id}:
get:
summary: Retrieve a relationship manager information
operationId: getRelationshipManager
parameters:
- name: locale
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/RelationshipManager"
"401":
description: Unauthorized
"400":
description: Bad request
content:
application/json:
schema:
type: object
properties:
error:
type: string
/{locale}/candidate/{id}/invite:
post:
summary: Invite a candidate
description: Locale is not specified as a candidate might use a different language than the user
operationId: inviteUser
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: locale
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
interviewDuration:
description: In minutes
type: integer
channel:
type: string
enum: ["online", "onsite"]
address:
type: string
url:
type: string
example: "https://meet.google.com/abc-def-ghi"
availabilitySlots:
type: array
items:
type: object
properties:
startDateTime:
type: string
format: date-time
endTime:
type: string
format: time
responses:
"200":
description: Success
content:
text/plain:
schema:
type: string
example: Thank you for providing the time slots. We will check with the candidate to find the best suitable time and inform you soon.
"400":
description: Error
"401":
description: Unauthorized
"410":
description: Gone
content:
application/json:
schema:
type: object
properties:
error:
type: string
/candidate/{id}/reject:
post:
summary: Reject a candidate
description: Locale is not specified as a candidate might use a different language than the user
operationId: rejectUser
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
reason:
type: string
enum:
- wrongGeographicalArea
- wrongJobFocus
- salaryExpectations
- qualifiedOtherCandidatesBetter
- notBestQualifiedEducation
- notBestQualifiedExperience
- notBestQualifiedOverqualified
- notBestQualifiedTooOld
- notBestQualifiedCulturalFit
- other
message:
type: string
example: "We are sorry to inform you that we will not proceed with candidate's application. We wish you all the best and can't wait for future candidates."
responses:
"200":
description: Success
"400":
description: Error
"401":
description: Unauthorized
"410":
description: Gone
content:
application/json:
schema:
type: object
properties:
error:
type: string
/sendMessage/{id}:
post:
summary: Send a message to DT to enquire about the candidacy
operationId: sendMessage
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: "We are sorry to inform you that we will not proceed with candidate's application. We wish you all the best and can't wait for future candidates."
responses:
"200":
description: Success
"400":
description: Error
"401":
description: Unauthorized