-
Notifications
You must be signed in to change notification settings - Fork 11
/
CommonSchemas.yaml
89 lines (84 loc) · 2.4 KB
/
CommonSchemas.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
info:
title: I_CommonSchemas
version: 1.0.2
### 1.0.2
# - new eror code 424, when default Anwendungskennzeichen will be lost or is necessary
### 1.0.1
# - removed minLength from Password for KIM 1.5.2 compatability
### 1.0.0
# - created
components:
schemas:
Username:
type: string
maxLength: 256
format: email
description: Username/email of the account.
Password:
type: string
maxLength: 256
format: byte
description: The password is transmitted base64 encoded.
writeOnly: true
Error:
type: object
properties:
message:
type: string
traceId:
type: string
maxLength: 255
example: 19aaf69260f63694
description: Unique character string for tracing the error in the KIM service
responses:
400:
description: Error in the input data, description of the error is in the error text
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/Error'
401:
description: Authentification failed
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/Error'
404:
description: Email account not available.
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/Error'
423:
description: VZD entry is locked.
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/Error'
424:
description: default Anwendungskennzeichen will be lost or is necessary.
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/Error'
500:
description: Internal Server Error
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/Error'
502:
description: VZD cannot be reached or returns errors
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
KIMBearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
# The JWT is encoded in compact serialization (RFC 7515, Section 3.1) and transmitted in the HTTP header Authorization according to the bearer schema.
KIMBasicAuth:
type: http
scheme: basic