Problem/Motivation
When creating exposed sorts for collections, the Views UI does not provide insight into the parameter structure for the querystring. As a result, developers unfamiliar with the URL syntax will need to create a "regular" view, save it, navigate to the page, and experiment with the exposed form to see what it does. The Views UI should surface more of the key identifiers.
Proposed resolution
Much like exposed fields will show you the identifier for the field's querystring parameter in the field plugin's modal popup, the exposed search popup should provide insight into the sort_by, sort_order properties and their accepted values. This might be mitigated by a module such as Self-Documenting REST API providing this information.
Remaining tasks
Determine approach
User interface changes
Additions to the views admin UI.
API changes
None expected.
Data model changes
None expected.
Comments
Comment #2
dawehnerOh yeah that part is indeed not absolute obvious. Some helping text with maybe a link would be great!
Comment #3
wim leers+1!
Comment #6
wim leersThis is a subset of #1925618: Ensure Drupal's web services are self-documenting: Swagger support OR rest_api_doc to Drupal core as an experimental module?.