autodiscovery

Utility methods used when querying a site in order to discover its available API endpoints

Methods

(inner) locateAPIRootHeader(response) → {String}

Attempt to locate a rel="https://api.w.org" link relation header

Source:
Parameters:
Name Type Description
response Object

A response object with a link or headers property

Returns:
Type:
String

The URL of the located API root