WordPress / Documentation-Issue-Tracker

Issue Tracker for the WordPress Documentation team.
https://make.wordpress.org/docs/
Other
77 stars 39 forks source link

API Handbook Custom Endpoint page need clarity #666

Open theMikeD opened 1 year ago

theMikeD commented 1 year ago

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.

zzap commented 1 year ago

Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.