FreeFeed / freefeed-server

FreeFeed server
https://freefeed.net
MIT License
41 stars 18 forks source link

Add a new API endpoint `GET /v2/users/sparseMatches?qs=...` #673

Closed davidmz closed 2 months ago

davidmz commented 2 months ago

Added new API endpoint GET /v2/users/sparseMatches?qs=... to get list of non-private users and groups, whose username sparse matches the query string. The sparse match means that the username must contain all the query string letters in the given order, but with possible other letters in between. For example, the 'ur[an]us', '[an]tenna', 's[a]tur[n]' matches the "an" query.

The query string should match the [a-z0-9-]{2,} regex.

The order of the results is not specified, the client should sort them at their side.