@@ -184,6 +184,34 @@ An example registration file for an IRC-bridging application service is below:
184184Homeserver -> Application Service API
185185~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
186186
187+ Legacy routes
188+ +++++++++++++
189+
190+ Previous drafts of the application service specification had a mix of endpoints
191+ that have been used in the wild for a significant amount of time. The application
192+ service specification now defines a version on all endpoints to be more compatible
193+ with the rest of the Matrix specification and the future.
194+
195+ Homeservers should attempt to use the specified endpoints first when communicating
196+ with application services. However, if the application service receives an http status
197+ code that does not indicate success (ie: 404, 500, 501, etc) then the homeserver
198+ should fall back to the older endpoints for the application service.
199+
200+ The older endpoints have the exact same request body and response format, they
201+ just belong at a different path. The equivalent path for each is as follows:
202+
203+ * ``/_matrix/app/v1/transactions/{txnId} `` becomes ``/transactions/{txnId} ``
204+ * ``/_matrix/app/v1/users/{userId} `` becomes ``/users/{userId} ``
205+ * ``/_matrix/app/v1/rooms/{roomAlias} `` becomes ``/rooms/{roomAlias} ``
206+ * ``/_matrix/app/v1/thirdparty/protocol/{protocol} `` becomes ``/_matrix/app/unstable/thirdparty/protocol/{protocol} ``
207+ * ``/_matrix/app/v1/thirdparty/user/{user} `` becomes ``/_matrix/app/unstable/thirdparty/user/{user} ``
208+ * ``/_matrix/app/v1/thirdparty/location/{location} `` becomes ``/_matrix/app/unstable/thirdparty/location/{location} ``
209+ * ``/_matrix/app/v1/thirdparty/user `` becomes ``/_matrix/app/unstable/thirdparty/user ``
210+ * ``/_matrix/app/v1/thirdparty/location `` becomes ``/_matrix/app/unstable/thirdparty/location ``
211+
212+ Homeservers should periodically try again for the newer endpoints because the
213+ application service may have been updated.
214+
187215Pushing events
188216++++++++++++++
189217
0 commit comments