3
3
title : I_TiMessengerInformation
4
4
description : |
5
5
# Overview
6
- This is a TI-Messenger REST interface that provides Informations for the TI-Messenger Client .
6
+ This is a TI-Messenger REST interface that provides Informations for TI-Messenger Clients .
7
7
# Context
8
8
## Authentication
9
9
The TI-Messenger-Client uses a Matrix-OpenID-Token from his Messenger-Service for
10
10
authentication on all REST operations. The bearer token can be obtained from the
11
- homeserver. (POST /_matrix/client/r0/user/{userId}/openid/request_token).
12
-
13
-
11
+ homeserver. (POST /_matrix/client/v3/user/{userId}/openid/request_token).
14
12
TI-Messenger-Client ---> Messenger-Proxy ---> Homeserver
15
13
## REST operations
16
14
The interface provides read informations for a TI-Messenger-Client
@@ -33,18 +31,23 @@ externalDocs:
33
31
url : https://github.com/gematik/api-ti-messenger
34
32
35
33
servers :
36
- - url : https://localhost/tim-information/v1.0.0/
34
+ - url : https://{serverDomain}/tim-information
35
+ variables :
36
+ serverDomain :
37
+ description : The domain of the server
38
+ default : tobereplaced.de
37
39
tags :
38
40
- name : info
39
41
description : This operation returns meta data about this interface and the status of available resources
40
- - name : contacts
41
- description : Operations for contact management
42
+ - name : lookUpDomain
43
+ description : Operations for domain lookup
42
44
43
45
paths :
44
46
/ :
45
47
get :
46
48
tags :
47
49
- info
50
+ summary : " Get information about the interface"
48
51
description : Returns the meta data of this interface.
49
52
operationId : getInfo
50
53
responses :
@@ -59,18 +62,19 @@ paths:
59
62
default :
60
63
$ref : " #/components/responses/DefaultResponse"
61
64
62
- /domain/findByIk :
65
+ /v1/ domain/findByIk :
63
66
parameters :
64
- - in : query
65
- name : iknumber
66
- description : " IK number to lookup the domain for."
67
- required : true
68
- schema :
69
- type : string
67
+ - in : query
68
+ name : ikNumber
69
+ description : " IK number to lookup the domain for."
70
+ required : true
71
+ schema :
72
+ type : string
70
73
get :
71
74
tags :
72
75
- lookUpDomain
73
- description : " Returns the domain that hosts user which belong to the given ik number."
76
+ summary : " Find domain by IK number"
77
+ description : " Returns the domain that hosts users which belong to the given IK number."
74
78
operationId : getDomain
75
79
responses :
76
80
" 200 " :
83
87
example : " gematiker-kk.de"
84
88
" 400 " :
85
89
$ref : " #/components/responses/BadRequest"
90
+ " 401 " :
91
+ $ref : " #/components/responses/Unauthorized"
86
92
" 404 " :
87
93
$ref : " #/components/responses/NotFound"
88
94
default :
@@ -119,7 +125,6 @@ components:
119
125
$ref : " #/components/schemas/Error"
120
126
121
127
schemas :
122
-
123
128
InfoObject :
124
129
description : " "
125
130
required :
@@ -131,17 +136,17 @@ components:
131
136
title :
132
137
type : string
133
138
description : " Der Titel der Anwendung"
134
- example : " Contact Management des TI-Messengers"
139
+ example : " Contact Information API des TI-Messengers"
135
140
description :
136
141
type : string
137
142
description : " Short description of the application"
138
- example : " Contact Management des TI-Messengers. Betreiber: <Betreibername>"
143
+ example : " Contact Information API des TI-Messengers. Betreiber: <Betreibername>"
139
144
contact :
140
145
type : string
141
- description : " Contact information "
146
+ description : " Kontaktinformationen des Betreibers "
142
147
version :
143
148
type : string
144
- description : " Version der implementierten TiMessengerContactManagement .yaml Schnittstelle (Version der TiMessengerContactManagement.yaml Datei) "
149
+ description : " Version der implementierten TiMessengerContactInformation .yaml"
145
150
example : " 1.0.0"
146
151
147
152
Error :
@@ -159,11 +164,11 @@ components:
159
164
- errorMessage
160
165
161
166
securitySchemes :
162
- bearerMatrixOpenIdTokenAuth : # arbitrary name for the security scheme
167
+ bearerMatrixOpenIdTokenAuth : # arbitrary name for the security scheme
163
168
type : http
164
169
scheme : bearer
165
- bearerFormat : JWT # optional, arbitrary value for documentation purposes
170
+ bearerFormat : JWT # optional, arbitrary value for documentation purposes
166
171
167
172
# the security applies to all operations
168
173
security :
169
- - bearerMatrixOpenIdTokenAuth : [] # use the same name as above
174
+ - bearerMatrixOpenIdTokenAuth : [] # use the same name as above
0 commit comments