WP-API / docs-v2

Documentation for version 2 of the API
http://v2.wp-api.org
58 stars 76 forks source link

Documentation: Developer Guides: How namespaces work and how you should namespace your code #167

Open krogsgard opened 7 years ago

krogsgard commented 7 years ago

Explain where, when, and how to namespace custom code. Should you use /wp/ namespace? Should you add your own for your plugin, a la /rcp/? How do you decide, and what is best practice?

We might should include versioning best practice here as well. Might as well get folks to do both at once.

kadamwhite commented 7 years ago

@krogsgard What is needed here beyond what is mentioned in https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/#namespacing ?