Page MenuHomePhabricator

RESTBase-APIComponent
ActivePublic

Members

  • This project does not have any members.
  • View All

Watchers (1)

  • This project does not have any watchers.
  • View All

Details

Description

Issues and discussions relevant to the RESTBase content API, API versioning and related issues. See https://www.mediawiki.org/wiki/Wikimedia_REST_API.

Documentation: https://www.mediawiki.org/wiki/RESTBase

For MediaWiki REST API (rest.php), see MediaWiki-REST-API.

Recent Activity

Wed, Nov 20

MSantos moved T342491: REST `/page/html/` API endpoint does not follow redirects as documented & demoed from Unsorted to Parsoid pile on the RESTBase Sunsetting board.
Wed, Nov 20, 10:41 AM · RESTBase Sunsetting, RESTBase-API

Nov 12 2024

Bawolff renamed T379614: 500 error from onthisday REST api endpoint "No content returned by backend" from 500 error from onthisday REST api endpoint to 500 error from onthisday REST api endpoint "No content returned by backend".
Nov 12 2024, 1:48 PM · RESTBase-API
Bawolff added a comment to T379614: 500 error from onthisday REST api endpoint "No content returned by backend".

btw, this seems to be the log entry for the 500 the user from discord experienced https://logstash.wikimedia.org/app/discover#/doc/logstash-*/logstash-default-1-7.0.0-1-2024.11.12?id=AL88IJMBLmySI1N_AuNw

Nov 12 2024, 1:47 PM · RESTBase-API
Bawolff created T379614: 500 error from onthisday REST api endpoint "No content returned by backend".
Nov 12 2024, 11:41 AM · RESTBase-API

Nov 11 2024

Reedy added a comment to T342571: Flaky test HtmlOutputRendererHelperTest::testHtmlIsStashedForExistingPage on CI.
20:31:47 1) MediaWiki\Tests\Rest\Handler\Helper\HtmlOutputRendererHelperTest::testHtmlIsStashedForFakeRevision
20:31:47 Failed asserting that null is not null.
20:31:47 
20:31:47 /workspace/src/tests/phpunit/integration/includes/Rest/Handler/Helper/HtmlOutputRendererHelperTest.php:452
Nov 11 2024, 9:34 PM · RESTBase-API, ci-test-error

Nov 7 2024

HCoplin-WMF changed the status of T375899: REST: consider separating "module id" and "module prefix" as separate concepts. from Open to In Progress.
Nov 7 2024, 3:26 PM · Patch-For-Review, RESTBase-API, MW-Interfaces-Team
HCoplin-WMF moved T375899: REST: consider separating "module id" and "module prefix" as separate concepts. from In Progress to Backlog (Triaged and Ready) on the MW-Interfaces-Team board.
Nov 7 2024, 3:24 PM · Patch-For-Review, RESTBase-API, MW-Interfaces-Team
Nikerabbit removed a project from T218217: Make services swagger specs standard compliant: CX-cxserver.
Nov 7 2024, 11:31 AM · Math, Platform Engineering, serviceops-radar, Product-Infrastructure-Team-Backlog-Deprecated, Proton, Graphoid, Citoid, Mathoid, Recommendation-API, Services (later), Mobile-Content-Service, RESTBase-API

Nov 6 2024

Nikerabbit closed T107914: Migrate content translation to the REST API as Declined.
Nov 6 2024, 3:07 PM · Language-Team (Language-2020-January-March), Platform Engineering, CX-cxserver, Language-2017-Oct-Dec, Language-2017-July-Sept, Language-team April-June 2017 (Language-2017 Sprint 9), Language-2017 Sprint 4, Language-2017 Sprint 3, Language-team January-March 2017, User-mobrovac, Essential-Work, RESTBase-API
Nikerabbit closed T163203: Update CX to use the new Restbase provided public API instead of CXServer, a subtask of T107914: Migrate content translation to the REST API, as Declined.
Nov 6 2024, 3:02 PM · Language-Team (Language-2020-January-March), Platform Engineering, CX-cxserver, Language-2017-Oct-Dec, Language-2017-July-Sept, Language-team April-June 2017 (Language-2017 Sprint 9), Language-2017 Sprint 4, Language-2017 Sprint 3, Language-team January-March 2017, User-mobrovac, Essential-Work, RESTBase-API

Oct 30 2024

bd808 added a comment to T342571: Flaky test HtmlOutputRendererHelperTest::testHtmlIsStashedForExistingPage on CI.

This test failed gate-and-submit for https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1084281 (https://integration.wikimedia.org/ci/job/mediawiki-quibble-composer-mysql-php74/4154/console). That patch should have been 100% things that had already passed the gate-and-submit tests to produce each hash collected in the wmf/next branch update.

Oct 30 2024, 4:21 PM · RESTBase-API, ci-test-error

Oct 10 2024

BPirkle triaged T375899: REST: consider separating "module id" and "module prefix" as separate concepts. as High priority.
Oct 10 2024, 3:17 PM · Patch-For-Review, RESTBase-API, MW-Interfaces-Team
BPirkle moved T375899: REST: consider separating "module id" and "module prefix" as separate concepts. from Incoming (Needs Triage) to Backlog (Triaged and Ready) on the MW-Interfaces-Team board.
Oct 10 2024, 3:14 PM · Patch-For-Review, RESTBase-API, MW-Interfaces-Team

Oct 1 2024

gerritbot added a project to T375899: REST: consider separating "module id" and "module prefix" as separate concepts.: Patch-For-Review.
Oct 1 2024, 7:32 AM · Patch-For-Review, RESTBase-API, MW-Interfaces-Team
gerritbot added a comment to T375899: REST: consider separating "module id" and "module prefix" as separate concepts..

Change #1072540 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[mediawiki/core@master] EXP: REST: distinguish between module path prefix and module ID

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

Oct 1 2024, 7:32 AM · Patch-For-Review, RESTBase-API, MW-Interfaces-Team

Sep 30 2024

daniel added a comment to T375899: REST: consider separating "module id" and "module prefix" as separate concepts..

Here we see both forms of module specification. The specs/v0 bit actually specifies the specs/v0 module, per the specs.v0.json module definition file. The content.v1 bit would be our new format for specifying module ids as parameters in urls.

Sep 30 2024, 5:49 PM · Patch-For-Review, RESTBase-API, MW-Interfaces-Team
daniel added a comment to T375899: REST: consider separating "module id" and "module prefix" as separate concepts..

But that approach is a bit hacky, because it makes assumptions about the module id structure, and it really only works if the module id is the last parameter. Which means that any endpoint that takes two module ids is problematic.

Sep 30 2024, 5:45 PM · Patch-For-Review, RESTBase-API, MW-Interfaces-Team

Sep 29 2024

BPirkle updated the task description for T375899: REST: consider separating "module id" and "module prefix" as separate concepts..
Sep 29 2024, 4:22 PM · Patch-For-Review, RESTBase-API, MW-Interfaces-Team

Sep 27 2024

BPirkle added a comment to T375899: REST: consider separating "module id" and "module prefix" as separate concepts..

tl;dr: sure, why not?

Sep 27 2024, 4:58 PM · Patch-For-Review, RESTBase-API, MW-Interfaces-Team
BPirkle created T375899: REST: consider separating "module id" and "module prefix" as separate concepts..
Sep 27 2024, 4:13 PM · Patch-For-Review, RESTBase-API, MW-Interfaces-Team

Sep 26 2024

SLopes-WMF removed a project from T342491: REST `/page/html/` API endpoint does not follow redirects as documented & demoed: Parsoid.
Sep 26 2024, 2:19 PM · RESTBase Sunsetting, RESTBase-API

Aug 29 2024

MSantos edited projects for T342491: REST `/page/html/` API endpoint does not follow redirects as documented & demoed, added: RESTBase Sunsetting; removed Content-Transform-Team.
Aug 29 2024, 2:19 PM · RESTBase Sunsetting, RESTBase-API
cscott added a comment to T342491: REST `/page/html/` API endpoint does not follow redirects as documented & demoed.

The RESTBASE API has been deprecated, please use https://api.wikimedia.org/wiki/Core_REST_API/Reference/Pages/Get_HTML

Aug 29 2024, 2:18 PM · RESTBase Sunsetting, RESTBase-API

Aug 19 2024

Krinkle added projects to T342491: REST `/page/html/` API endpoint does not follow redirects as documented & demoed: Parsoid, Content-Transform-Team.
Aug 19 2024, 8:46 PM · RESTBase Sunsetting, RESTBase-API

Aug 11 2024

Pppery removed a project from T340593: Clarify GFDL 1.3 license: good first task.
Aug 11 2024, 11:44 PM · RESTBase-API, Wikistories, UploadWizard, User-Frostly

Aug 6 2024

HNordeenWMF added a comment to T169116: Support flagged revisions in RESTBase.

+1 user through the iOS support email
cc @ARamadan-WMF
T371409: Implement Pending Changes System for Arabic Wikipedia in the App

The Pending Changes system is not functional within the app, which makes it difficult for contributors to effectively participate in the Arabic Wikipedia. The Pending Changes system is crucial for maintaining the quality of content and ensuring that edits are reviewed before being published.

Aug 6 2024, 6:58 PM · Platform Engineering (Icebox), RESTBase-API, RESTBase, VisualEditor, Product-Infrastructure-Team-Backlog-Deprecated, Mobile-Content-Service

Jul 18 2024

Magnus added a comment to T370420: Wikidata (wikibase) REST API throws 500 error on subsequent API call.

Update: API response is {"code":"unexpected-error","message":"Unexpected error"} for the second call.

Jul 18 2024, 3:08 PM · RESTBase-API
daniel moved T368461: REST: decide on a name for the module that will replace the Parsoid endpoints. from In Progress to Done on the MW-Interfaces-Team board.
Jul 18 2024, 2:59 PM · Content-Transform-Team-WIP, RESTBase-API, MediaWiki-REST-API, MW-Interfaces-Team, MediaWiki-Engineering
daniel closed T368461: REST: decide on a name for the module that will replace the Parsoid endpoints. as Resolved.

Everyone seems to be happy with content.v1, so let's do it!

Jul 18 2024, 2:58 PM · Content-Transform-Team-WIP, RESTBase-API, MediaWiki-REST-API, MW-Interfaces-Team, MediaWiki-Engineering
Magnus added a comment to T370420: Wikidata (wikibase) REST API throws 500 error on subsequent API call.

At least it should fail with an "edit conflict" error or something, but since the statements are different, I would expect both calls to succeed

Jul 18 2024, 2:44 PM · RESTBase-API
Magnus created T370420: Wikidata (wikibase) REST API throws 500 error on subsequent API call.
Jul 18 2024, 2:43 PM · RESTBase-API

Jul 16 2024

VirginiaPoundstone moved T360499: There are anomalies in some of the mostread data on zhwiki for March 2024 from Metrics Platform Backlog to Pipelines Backlog on the Data Products board.
Jul 16 2024, 4:37 PM · Data Pipelines, Data Products, Chinese-Sites, Wikifeeds, RESTBase-API, Data-Engineering, Pageviews-API
VirginiaPoundstone moved T360499: There are anomalies in some of the mostread data on zhwiki for March 2024 from Pipelines Backlog to Metrics Platform Backlog on the Data Products board.
Jul 16 2024, 4:36 PM · Data Pipelines, Data Products, Chinese-Sites, Wikifeeds, RESTBase-API, Data-Engineering, Pageviews-API

Jul 11 2024

FJoseph-WMF moved T368344: Proposal: fail explicitly and revoke relevant API keys over plain-text HTTP connection for all Wikimedia APIs from Incoming (Needs Triage) to Needs Further Discussion on the MW-Interfaces-Team board.
Jul 11 2024, 2:47 PM · Security, MW-Interfaces-Team, Traffic, HTTPS, Wikimedia Enterprise, RESTBase-API, MediaWiki-REST-API, MediaWiki-Action-API

Jul 9 2024

Tgr added a comment to T368344: Proposal: fail explicitly and revoke relevant API keys over plain-text HTTP connection for all Wikimedia APIs.

I think this wouldn't be very useful as a security measure:

  • When authenticating with cookies, all cookies use the Secure flag already, so a reasonable client would not send them over HTTP.
  • OAuth 1 is designed to be secure over HTTP.
  • The OAuth 2 spec forbids serving HTTP requests, so if we allow them currently, we should stop doing that. There is some value in key revocation but I'm not sure if it's worth the effort - you'd need to avoid write on GET, notify the user somehow, it's easy to cause mass breakage by revoking keys which don't need to be revoked (SSL is terminated way before the request reaches the appserver so MediaWiki can't directly check what protocol is being used), hard to do consistently (how would non-MediaWiki APIs revoke?).
Jul 9 2024, 9:27 PM · Security, MW-Interfaces-Team, Traffic, HTTPS, Wikimedia Enterprise, RESTBase-API, MediaWiki-REST-API, MediaWiki-Action-API
Tgr added a project to T368344: Proposal: fail explicitly and revoke relevant API keys over plain-text HTTP connection for all Wikimedia APIs: Security.
Jul 9 2024, 9:26 PM · Security, MW-Interfaces-Team, Traffic, HTTPS, Wikimedia Enterprise, RESTBase-API, MediaWiki-REST-API, MediaWiki-Action-API

Jul 8 2024

BCornwall moved T368344: Proposal: fail explicitly and revoke relevant API keys over plain-text HTTP connection for all Wikimedia APIs from Backlog to Radar/Not for service by Traffic on the Traffic board.
Jul 8 2024, 4:43 PM · Security, MW-Interfaces-Team, Traffic, HTTPS, Wikimedia Enterprise, RESTBase-API, MediaWiki-REST-API, MediaWiki-Action-API
pmiazga added a comment to T368344: Proposal: fail explicitly and revoke relevant API keys over plain-text HTTP connection for all Wikimedia APIs.

Tagging MW-Interfaces-Team as they are API owners.

Jul 8 2024, 2:01 PM · Security, MW-Interfaces-Team, Traffic, HTTPS, Wikimedia Enterprise, RESTBase-API, MediaWiki-REST-API, MediaWiki-Action-API
pmiazga added a project to T368344: Proposal: fail explicitly and revoke relevant API keys over plain-text HTTP connection for all Wikimedia APIs: MW-Interfaces-Team.
Jul 8 2024, 1:59 PM · Security, MW-Interfaces-Team, Traffic, HTTPS, Wikimedia Enterprise, RESTBase-API, MediaWiki-REST-API, MediaWiki-Action-API

Jul 2 2024

Jgiannelos added a comment to T368461: REST: decide on a name for the module that will replace the Parsoid endpoints..

+1 for content

Jul 2 2024, 2:49 PM · Content-Transform-Team-WIP, RESTBase-API, MediaWiki-REST-API, MW-Interfaces-Team, MediaWiki-Engineering

Jun 29 2024

apaskulin added a comment to T368461: REST: decide on a name for the module that will replace the Parsoid endpoints..

I'm also +1 to content. Thanks for doing this!

Jun 29 2024, 1:00 AM · Content-Transform-Team-WIP, RESTBase-API, MediaWiki-REST-API, MW-Interfaces-Team, MediaWiki-Engineering

Jun 27 2024

BPirkle triaged T368461: REST: decide on a name for the module that will replace the Parsoid endpoints. as Medium priority.
Jun 27 2024, 3:18 PM · Content-Transform-Team-WIP, RESTBase-API, MediaWiki-REST-API, MW-Interfaces-Team, MediaWiki-Engineering
BPirkle changed the status of T368461: REST: decide on a name for the module that will replace the Parsoid endpoints. from Open to In Progress.
Jun 27 2024, 3:18 PM · Content-Transform-Team-WIP, RESTBase-API, MediaWiki-REST-API, MW-Interfaces-Team, MediaWiki-Engineering
MSantos moved T368461: REST: decide on a name for the module that will replace the Parsoid endpoints. from Backlog to Needs Investigation on the Content-Transform-Team-WIP board.
Jun 27 2024, 2:04 PM · Content-Transform-Team-WIP, RESTBase-API, MediaWiki-REST-API, MW-Interfaces-Team, MediaWiki-Engineering
MSantos edited projects for T368461: REST: decide on a name for the module that will replace the Parsoid endpoints., added: Content-Transform-Team-WIP; removed Content-Transform-Team.
Jun 27 2024, 2:04 PM · Content-Transform-Team-WIP, RESTBase-API, MediaWiki-REST-API, MW-Interfaces-Team, MediaWiki-Engineering

Jun 26 2024

BPirkle added a comment to T368461: REST: decide on a name for the module that will replace the Parsoid endpoints..

Good question. Not sure I have a great answer, but I do have a few thoughts.

Jun 26 2024, 7:13 PM · Content-Transform-Team-WIP, RESTBase-API, MediaWiki-REST-API, MW-Interfaces-Team, MediaWiki-Engineering
MSantos added a project to T368461: REST: decide on a name for the module that will replace the Parsoid endpoints.: Content-Transform-Team.
Jun 26 2024, 1:43 PM · Content-Transform-Team-WIP, RESTBase-API, MediaWiki-REST-API, MW-Interfaces-Team, MediaWiki-Engineering
daniel moved T368461: REST: decide on a name for the module that will replace the Parsoid endpoints. from Inbox, needs triage to MediaWiki Interfaces team on the MediaWiki-Engineering board.
Jun 26 2024, 1:31 PM · Content-Transform-Team-WIP, RESTBase-API, MediaWiki-REST-API, MW-Interfaces-Team, MediaWiki-Engineering
daniel updated the task description for T368461: REST: decide on a name for the module that will replace the Parsoid endpoints..
Jun 26 2024, 9:59 AM · Content-Transform-Team-WIP, RESTBase-API, MediaWiki-REST-API, MW-Interfaces-Team, MediaWiki-Engineering
daniel added a comment to T368461: REST: decide on a name for the module that will replace the Parsoid endpoints..

For reference, here are some adjacent endpoints that are related to pages but do not correspond to the old parsoid endpoints:

  • /v1/page/{title}/history
  • /v1/page/{title}/history/counts/{type}
  • /v1/revision/{from}/compare/{to}
  • /v1/page/{title}/links/language
  • /v1/page/{title}/links/media
  • /v1/file/{title}
Jun 26 2024, 9:58 AM · Content-Transform-Team-WIP, RESTBase-API, MediaWiki-REST-API, MW-Interfaces-Team, MediaWiki-Engineering