Change unauthenticated search to not support pagination in REST API (#19326)
- Only exact search matches for queries with < 5 characters - Do not support queries with `offset` (pagination) - Return HTTP 401 on truthy `resolve` instead of overriding to false
Showing
- app/controllers/api/v2/search_controller.rb 12 additions, 1 deletionapp/controllers/api/v2/search_controller.rb
- app/services/account_search_service.rb 5 additions, 0 deletionsapp/services/account_search_service.rb
- spec/controllers/api/v2/search_controller_spec.rb 54 additions, 8 deletionsspec/controllers/api/v2/search_controller_spec.rb
Please register or sign in to comment