Page MenuHomePhabricator

RFC: Optionally support passing in urls / paths as arrays of path segments in VirtualRESTService
Closed, DeclinedPublic


Currently the VirtualRESTService expects the url parameter to be a string. This forces users to encode path segments that might contain special characters (like slashes), and then forces us to potentially decode those path segments again in the backend to rewrite the URL.

Instead, I think it would be nice to (also) support passing in an array of path segments:

'url' => array( 'v1', 'local', 'page', $title, 'html', $oldid )

What do you think?

Event Timeline

GWicke raised the priority of this task from to Needs Triage.
GWicke updated the task description. (Show Details)
GWicke added subscribers: GWicke, aaron, Krenair.
GWicke updated the task description. (Show Details)Dec 22 2014, 8:28 PM
GWicke set Security to None.
GWicke updated the task description. (Show Details)
GWicke added a project: RESTBase-API.
GWicke triaged this task as Normal priority.Oct 12 2016, 10:24 PM
GWicke edited projects, added Services (later); removed Services.
Pchelolo closed this task as Declined.Aug 5 2019, 4:18 PM
Pchelolo added a subscriber: Pchelolo.

I don't think we will do it since there was no activity in 5 years after filing this task.