Page MenuHomePhabricator

Update all example API requests to use formatversion=2 and https
Open, Needs TriagePublic

Description

(this may be a duplicate)

formatversion=2 in API requests gets a cleaner better response. It's the recommended future, so we should show it in all API requests, both on-wiki and in generated getExamplesMessages(). Related, ApiSandbox needs to support formatversion (T98083) and default it to on.

Similarly, Wikimedia wikis are transitioning to only supporting https, including api.php, so all sample API URLs that show http: as the scheme should switch to https:. The {{ApiEx}} wiki template and generated getExamplesMessages() don't show the scheme.

(We also should have shown continue= in all examples to encourage the improved continue format, but that will become the default in July 2015.)

Event Timeline

Spage raised the priority of this task from to Needs Triage.
Spage updated the task description. (Show Details)
Spage subscribed.

Change 400074 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/core@master] Add formatversion=2 to all API examples

https://gerrit.wikimedia.org/r/400074

Hi. I'm Diksha and I'm an outreachy applicant. I want to contribute to this project. May I know the repository name of this task?

Restricted Application added a subscriber: Liuxinyu970226. · View Herald Transcript
WDoranWMF subscribed.

@Dikshagupta99 this might not be a great task to look at as part of Outreachy. I'd suggest looking through good first task tasks and pull from there. You could filter by Platform Engineering. Let me know if I can help more!