@@ -2,19 +2,11 @@ openapi: 3.0.3
2
2
info :
3
3
title : I_TiMessengerInformation
4
4
description : |
5
- # Overview
6
- This is a TI-Messenger REST interface that provides Informations for TI-Messenger Clients.
7
- # Context
8
- ## Authentication
9
- The TI-Messenger-Client uses a Matrix-OpenID-Token from his Messenger-Service for
10
- authentication on all REST operations. The bearer token can be obtained from the
11
- homeserver. (POST /_matrix/client/v3/user/{userId}/openid/request_token).
12
- TI-Messenger-Client ---> Messenger-Proxy ---> Homeserver
13
- ## REST operations
14
- The interface provides read informations for a TI-Messenger-Client
15
- TI-Messenger-Client ---> Messenger-Proxy
5
+ This is a REST interface that provides information to TI-Messenger clients.
16
6
17
- # Information
7
+ The client uses a Matrix-OpenID-Token for authentication on all REST
8
+ operations. The bearer token can be obtained from the homeserver via
9
+ POST /_matrix/client/v3/user/{userId}/openid/request_token).
18
10
version : 1.0.0
19
11
# ## 1.0.0
20
12
# - initial version
@@ -31,74 +23,102 @@ externalDocs:
31
23
url : https://github.com/gematik/api-ti-messenger
32
24
33
25
servers :
34
- - url : https://{serverDomain }/tim-information
26
+ - url : https://{server }/tim-information
35
27
variables :
36
- serverDomain :
37
- description : The domain of the server
28
+ server :
29
+ description : " The server hosting this interface. "
38
30
default : tobereplaced.de
31
+
39
32
tags :
40
33
- name : info
41
- description : This operation returns meta data about this interface and the status of available resources
42
- - name : lookUpDomain
43
- description : Operations for domain lookup
34
+ description : " Information about this interface itself. "
35
+ - name : lookUpServer
36
+ description : " Operations for server lookup. "
44
37
45
38
paths :
46
39
/ :
47
40
get :
48
41
tags :
49
42
- info
50
- summary : " Get information about the interface"
51
- description : Returns the meta data of this interface.
52
- operationId : getInfo
43
+ summary : " Retrieve metadata about this interface."
53
44
responses :
54
45
" 200 " :
55
- description : OK
46
+ description : " OK "
56
47
content :
57
48
application/json :
58
49
schema :
59
50
$ref : " #/components/schemas/InfoObject"
60
51
" 403 " :
61
52
$ref : " #/components/responses/Forbidden"
62
- default :
63
- $ref : " #/components/responses/DefaultResponse"
64
53
65
- /v1/domain/findByIk :
66
- parameters :
67
- - in : query
68
- name : ikNumber
69
- description : " IK number to lookup the domain for."
70
- required : true
71
- schema :
72
- type : string
54
+ /v1/server/findByIk :
73
55
get :
74
56
tags :
75
- - lookUpDomain
76
- summary : " Find domain by IK number"
77
- description : " Returns the domain that hosts users which belong to the given IK number."
78
- operationId : getDomain
57
+ - lookUpServer
58
+ summary : " Resolve an IK number to the associated TI-Messenger server name."
59
+ parameters :
60
+ - in : query
61
+ name : ikNumber
62
+ description : " IK number to look up."
63
+ required : true
64
+ schema :
65
+ type : string
79
66
responses :
80
67
" 200 " :
81
- description : " The domain hosting users for the given ik number. "
68
+ description : " OK "
82
69
content :
83
70
application/json :
84
71
schema :
85
- type : string
86
- description : " the domain for the given ik number"
87
- example : " gematiker-kk.de"
72
+ type : object
73
+ required :
74
+ - serverName
75
+ properties :
76
+ serverName :
77
+ type : string
78
+ description : " The TI-Messenger server name for the given IK number."
79
+ example : " gematiker-kk.de"
88
80
" 400 " :
89
81
$ref : " #/components/responses/BadRequest"
90
82
" 401 " :
91
83
$ref : " #/components/responses/Unauthorized"
92
84
" 404 " :
93
85
$ref : " #/components/responses/NotFound"
94
- default :
95
- $ref : " #/components/responses/DefaultResponse"
86
+
87
+ /v1/server/isInsurance :
88
+ get :
89
+ tags :
90
+ - lookUpServer
91
+ summary : " Check whether a TI-Messenger server name represents an insurance."
92
+ parameters :
93
+ - in : query
94
+ name : serverName
95
+ description : " The server name to query."
96
+ required : true
97
+ schema :
98
+ type : string
99
+ responses :
100
+ " 200 " :
101
+ description : " OK"
102
+ content :
103
+ application/json :
104
+ schema :
105
+ type : object
106
+ required :
107
+ - isInsurance
108
+ properties :
109
+ isInsurance :
110
+ type : boolean
111
+ description : " `true` if the server name represents an insurance or `false` otherwise."
112
+ " 400 " :
113
+ $ref : " #/components/responses/BadRequest"
114
+ " 401 " :
115
+ $ref : " #/components/responses/Unauthorized"
96
116
97
117
# Descriptions of common components
98
118
components :
99
119
responses :
100
120
DefaultResponse :
101
- description : " The default error response"
121
+ description : " Default error response. "
102
122
content :
103
123
application/json :
104
124
schema :
@@ -126,7 +146,6 @@ components:
126
146
127
147
schemas :
128
148
InfoObject :
129
- description : " "
130
149
required :
131
150
- title
132
151
- version
@@ -135,29 +154,28 @@ components:
135
154
properties :
136
155
title :
137
156
type : string
138
- description : " Der Titel der Anwendung "
157
+ description : " The service's title. "
139
158
example : " Contact Information API des TI-Messengers"
140
159
description :
141
160
type : string
142
- description : " Short description of the application "
161
+ description : " Short description of the service. "
143
162
example : " Contact Information API des TI-Messengers. Betreiber: <Betreibername>"
144
163
contact :
145
164
type : string
146
- description : " Kontaktinformationen des Betreibers "
165
+ description : " Contact information of the operator. "
147
166
version :
148
167
type : string
149
- description : " Version der implementierten TiMessengerContactInformation.yaml"
168
+ description : " Version of the ` TiMessengerContactInformation.yaml` interface. "
150
169
example : " 1.0.0"
151
170
152
171
Error :
153
- description : " Default error object with information about the occurred error"
154
172
type : object
155
173
properties :
156
174
errorCode :
157
- description : " a code identifying this error"
175
+ description : " A code identifying this error. "
158
176
type : string
159
177
errorMessage :
160
- description : " a readable message describing the error"
178
+ description : " A readable message describing the error. "
161
179
type : string
162
180
required :
163
181
- errorCode
0 commit comments