Skip to content

Instantly share code, notes, and snippets.

@Pchelolo
Created August 8, 2018 23:37
Show Gist options
  • Save Pchelolo/bd3c68efef15092d01bcfd969e960b94 to your computer and use it in GitHub Desktop.
Save Pchelolo/bd3c68efef15092d01bcfd969e960b94 to your computer and use it in GitHub Desktop.
resources:
mediawiki_html:
definition:
meta:
uri: '/^(?<proto>https?):\/\/[^\/]+\/wiki\/(?<title>.+)$/'
subresources:
wikipedia_mediawiki_html:
meta:
uri: '/^(?<proto>https?):\/\/[^\/]+\/wiki\/(?<title>.+)$/'
domain: /.*.wikipedia.org/
wiktionary_mediawiki_html:
meta:
uri: '/^(?<proto>https?):\/\/[^\/]+\/wiki\/(?<title>.+)$/'
domain: /.*.wiktionary.org/
restbase_html:
definition: <skipped for simplicity>
update:
method: get
uri: https://{domain}/api/rest_v1/page/html/{title}
headers:
cache-control: no-cache
mw_purge:
topic: resource_change
resources:
- name: wikipedia_mediawiki_html:
dependents:
- restbase_html
- restbase_summary:
- restbase_mobile_sections
- name: wiktionary_mediawiki_html
dependents:
- restbase_html
- restbase_definitions
- name: mediawiki_html
dependents:
- restbase_html
- restbase_summary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment