Skip to content

Simplify auto-discovery process #334

Description

@kadamwhite

@rmccue notes that appending ?rest_route=/ to a WordPress URL will yield the root response JSON (e.g. make.wordpress.org/core/?rest_route=/)—this is simpler than trusting to the presence of a header or an HTML <link> element, and we can use the self relation for the root API route to determine that base URL.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions