0

For example, when you perform an call from summary api of wikipedia, there is this header in the request

accept:application/json; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/Summary/1.3.7"

What is the purpose of this particular bit. I would like to understand since the value changes when you, for example, use the VisualEditor or access the api with different mean. profile="https://www.mediawiki.org/wiki/Specs/Summary/1.3.7"

Loredra L
  • 1,485
  • 2
  • 16
  • 32

1 Answers1

1

This specifies the response format and provides convenient access to a human-readable documentation.

The URL in your header leads to nowhere, but https://www.mediawiki.org/wiki/Specs/Summary/1.3.0 does exist and is probably valid for 1.3.7 as well.

IonicSolutions
  • 2,559
  • 1
  • 18
  • 31