From 5049e552e7da9ff65ddbaa7610072baa5dfa0827 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Tue, 18 Jun 2019 17:05:46 +0100 Subject: [PATCH] Drop /api from the new endpoint --- proposals/2134-identity-hash-lookup.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/proposals/2134-identity-hash-lookup.md b/proposals/2134-identity-hash-lookup.md index a34ee767..45f7d5f0 100644 --- a/proposals/2134-identity-hash-lookup.md +++ b/proposals/2134-identity-hash-lookup.md @@ -22,10 +22,11 @@ This proposal thus calls for the Identity Service’s /lookup API to use hashed This proposal suggests making changes to the Identity Service API's lookup endpoints. Due to the nature of this proposal, the new endpoints should be on a -`v2` path: +`v2` path (we also drop the `/api` in order to preserve consistency across +other endpoints): -- `/_matrix/identity/api/v2/lookup` -- `/_matrix/identity/api/v2/bulk_lookup` +- `/_matrix/identity/v2/lookup` +- `/_matrix/identity/v2/bulk_lookup` The parameters will remain the same, but `address` should no longer be in a plain-text format. `address` will now take a hash value, and the resulting