Page MenuHomePhabricator

Allow pre-filling api request parameters from a link
Closed, DeclinedPublic

Description

For tutorials and in-depth documentation it would be great to be able to pass in example requests to the API docs / sandbox using a link. There doesn't seem to be obvious support for this in https://github.com/swagger-api/swagger-ui, so this might be something we'd have to add.

Event Timeline

GWicke raised the priority of this task from to Medium.
GWicke updated the task description. (Show Details)
GWicke added a project: RESTBase.
GWicke added subscribers: GWicke, Spage.
GWicke set Security to None.
GWicke updated the task description. (Show Details)

As a comparison, you can put the query string from an api.php request into the hashtag for Special:ApISandbox and it will prefill the latter's form, i.e. take

and make the URL

allowing T89680: Template:ApiEx on mw.org should have a link to "[view in ApiSandbox]".. I think we could build a similar Template:RestApiEx for RESTBase example requests on mw.org.

mobrovac subscribed.

This is unlikely to happen at this point, so declining.