From ad2808c70b4bc7cce9d66b4b77690d5c61f9d1db Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 22 Jun 2017 17:53:04 +0200 Subject: update documentation with the additional search parameters Signed-off-by: Bjoern Schiessle --- doc/architecture.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/architecture.md b/doc/architecture.md index 2a39f09..1c47e69 100755 --- a/doc/architecture.md +++ b/doc/architecture.md @@ -113,6 +113,15 @@ This call can be used to search for a user in a fuzzy way Example: curl -X GET http://dev/nextcloud/lookup-server/server/users?search=searchstring +Add a additional parameter to search for an exact match, for example: +curl -X GET http://dev/nextcloud/lookup-server/server/users?search=searchstring&exact=1 + +If you want to limit the exact search to a specific parameter, e.g the email address you can do following: +curl -X GET http://dev/nextcloud/lookup-server/server/users?search=searchstring&exact=1&keys=["email"] + +To get the verification result of a users Twitter account or email address we can search for a specific users cloud ID: +curl -X GET http://dev/nextcloud/lookup-server/server/users?search=&exactCloudId=1 + ### Get replication log This call is used for master-master replication between different nodes. Example: -- cgit v1.2.3