@@ -169,6 +169,34 @@ An example registration file for an IRC-bridging application service is below:
169169Homeserver -> Application Service API
170170~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
171171
172+ Legacy routes
173+ +++++++++++++
174+
175+ Previous drafts of the application service specification had a mix of endpoints
176+ that have been used in the wild for a significant amount of time. The application
177+ service specification now defines a version on all endpoints to be more compatible
178+ with the rest of the Matrix specification and the future.
179+
180+ Homeservers should attempt to use the specified endpoints first when communicating
181+ with application services. However, if the application service receives an http status
182+ code that does not indicate success (ie: 404, 500, 501, etc) then the homeserver
183+ should fall back to the older endpoints for the application service.
184+
185+ The older endpoints have the exact same request body and response format, they
186+ just belong at a different path. The equivalent path for each is as follows:
187+
188+ * ``/_matrix/app/v1/transactions/{txnId} `` becomes ``/transactions/{txnId} ``
189+ * ``/_matrix/app/v1/users/{userId} `` becomes ``/users/{userId} ``
190+ * ``/_matrix/app/v1/rooms/{roomAlias} `` becomes ``/rooms/{roomAlias} ``
191+ * ``/_matrix/app/v1/thirdparty/protocol/{protocol} `` becomes ``/_matrix/app/unstable/thirdparty/protocol/{protocol} ``
192+ * ``/_matrix/app/v1/thirdparty/user/{user} `` becomes ``/_matrix/app/unstable/thirdparty/user/{user} ``
193+ * ``/_matrix/app/v1/thirdparty/location/{location} `` becomes ``/_matrix/app/unstable/thirdparty/location/{location} ``
194+ * ``/_matrix/app/v1/thirdparty/user `` becomes ``/_matrix/app/unstable/thirdparty/user ``
195+ * ``/_matrix/app/v1/thirdparty/location `` becomes ``/_matrix/app/unstable/thirdparty/location ``
196+
197+ Homeservers should periodically try again for the newer endpoints because the
198+ application service may have been updated.
199+
172200Pushing events
173201++++++++++++++
174202
0 commit comments