Description
We previously had to remove this feature but now that we are back stable we can bring it back. before, the search was client side because it was fetching the whole list, now it is dynamically fetching based on scroll so we will have to use the API endpoint to get the data. I would recommend we use the same autocomplete that is being used on the home page to get the handle, searching for partials is expensive.
Endpoint: /api/v1/anon/blocklist-search-blocked/{handle1}/{handle2}
Description: Get if handle 1 blocked by handle 2
Parameters: handle 1 & handle 2
Response:
{
"data":
{
"blocked_date":"2023-10-23T22:17:42.214000+00:00",
"handle":"desir.ee",
"status":true
}
}
/api/v1/anon/blocklist-search-blocking/{handle1}/{handle2}
Description: Get if handle 1 is blocked by handle 2
Parameters: handle 1 & handle 2
Response:
{
"data":
{
"blocked_date":"2024-03-05T22:40:37.498000+00:00",
"handle":"mary.my.id",
"status":true
}
}