Open theMikeD opened 1 year ago
The Adding Custom Endpoints page is missing a bit of key information
https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/#bare-basics
The second code block in the Bare Basics section
The use of parameter pattern matching is opaque. How does the user get from {id} is an integer to (?P<id>\d+)?
{id} is an integer
(?P<id>\d+)
Describe how this parameter works.
Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.
Issue Description
The Adding Custom Endpoints page is missing a bit of key information
URL of the Page with the Issue
https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/#bare-basics
Section of Page with the issue
The second code block in the Bare Basics section
Why is this a problem?
The use of parameter pattern matching is opaque. How does the user get from
{id} is an integer
to(?P<id>\d+)
?Suggested Fix
Describe how this parameter works.