Thread:Talk:Requests for comment/API Future/Cacheable requests, URLs, and cache purging?/reply (2)

I think a REST API can be useful for most or all operations by requiring all (sub)module options be included in a specific order, by using "/" to separate options, by placing page name or prefix as the last option for modules wanting one, and using a placeholder (such as "*") when an option isn't relevant. The page name or prefix may possibly be omitted just as with the current API.

Examples of what this might look like:

api.php ? action=query & list=allcategories & acmin=1 & acmax=1 & aclimit=10 → /w/api/v2/categories/ascending/!hidden/10/1/1/

api.php ? action=query & list=allcategories & acmin=1 & acmax=1 & aclimit=10 & acprefix=Requests_for_comment/ → /w/api/v2/categories/ascending/!hidden/10/1/1/Category:Requests_for_comment/

api.php ? action=query & list=categorymembers & cmtitle=Category:Requests_for_comment & cmlimit=10 → /w/api/v2/categories/ascending/!hidden/10/*/*/Category:Requests_for_comment

api.php ? action=query & titles=Requests_for_comment/API_Future & prop=categories & cllimit=10 → /w/api/v2/categories/ascending/!hidden/10/*/*/Requests_for_comment/API_Future