Page MenuHomePhabricator

document how to use Wikimedia Enterprise API Paid Features for Free with WMCS
Closed, ResolvedPublic

Description

The 'Access' section of the Metawiki page on Wikimedia Enterprise describes that Wikimedia community members can access the paid features of the Enterprise APIs for free through WMCS: https://meta.wikimedia.org/wiki/Wikimedia_Enterprise#Access

But the path to access is not clearly described anywhere.

Goals:

  • Figure out the prerequisites for using WME APIs through WMCS
  • clearly describe how a user with WMCS access can start using the WME APIs
  • find where to put that documentation, and put it there
  • share this information more broadly with Wikimedia community devs.

Event Timeline

Thoughts:

User journey:

  • Stuck here. I just need to make some calls from infrastructure like PAWS, Toolforge, or Cloud VPS. From internal slack I know that *WMCS bypasses auth*. So I don't need to auth, meaning I can just make calls without an Auth access_token?

User Journey, cont'd

1: PAWS

  • Paws homepage
  • click on first link
  • log in, get authd, click on 'console bash'
  • use an example query for on-demand API, but without a --header param. Execute bash.
curl --location --request GET 'https://api.enterprise.wikimedia.com/v2/articles/Josephine_Baker' --header 'Content-Type: application/json' --data '{"filters":[{"field":"is_part_of.identifier","value":"enwiki"},{"field":"namespace.identifier","value":0}]}'
  • it...just works!

-> do we make tutorials in these ipynbs for WME APIs?

second test to see if we really have paid account access: try Realtime stream

curl --location 'https://realtime.enterprise.wikimedia.com/v2/articles' --header 'Content-Type: application/json' --data '{"filters":[{"field":"is_part_of.identifier","value":"enwiki"}]}'
  • also works
  • tried in terminal on PAWS: also works.

changes made

2: Toolforge

ssh -i ~/.ssh calvinball@login.toolforge.org
  • made the same two example calls above, which again work perfectly in toolforge ssh shell.

3: Cloud VPS

  • go to Cloud VPS portal
  • go to cloud VPS user docs
  • I understand I need to create or join a cloud VPS project to test these calls in Cloud VPS
  • Look at existing cloud VPS projects.
  • I'm going to assume that if this works on Toolforge or PAWS as expected, this will also be the case for VPS. Joining or creating a Cloud VPS project will take too much time at this hackathon.

Next Steps

Clearly document that you need to make calls without any authentication at: