Overview
Let’s customize the views for the model added in the following article.
Sort
Let’s add ordering_fields.
As a result, only user_name became selectable in the “Filters” display.

For example, sorting by age returned a validation error.

Filter
With the above, the following filter became possible.
http://localhost:8000/user-info?filter[user_name.contains]=nakamura
For id, since only exact and in are allowed, the following resulted in a validation error.
http://localhost:8000/user-info?filter[id.contains]=2

Checking the swagger-ui confirmed that filter was correctly configured.
http://localhost:8000/swagger-ui/

ReadOnlyModelViewSet
This appears to be a Django REST framework feature, but by using ReadOnlyModelViewSet, I was able to create a view-only view.
Checking the swagger-ui confirmed that only get was set.

Summary
There are many points where my understanding is still insufficient, but I hope this serves as a useful reference for implementing filters.