Page MenuHomePhabricator

API using url query string instead of path.
Closed, DeclinedPublic

Event Timeline

LinJin created this task.Apr 1 2015, 5:34 AM
LinJin raised the priority of this task from to Needs Triage.
LinJin updated the task description. (Show Details)
LinJin added a project: RESTBase-API.
LinJin added a subscriber: LinJin.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 1 2015, 5:34 AM

RESTBase is a REST API where resources are represented in the URI path. Nowadays, most languages provide ways to encode only URI components, so the solution to your problem should be as easy as:

url = 'http://rest.wikimedia.org/en.wikipedia.org/v1/page/data-parsoid/' + encode_component(page_name);
GWicke closed this task as Declined.Apr 7 2015, 11:41 PM
GWicke claimed this task.