Custom routes and endpoints
Details
- Content type (Online Workshop, Lesson, Course, Tutorial, or Lesson Plan): Lesson
- Content title: Custom routes and endpoints
- Topic description: How to create custom routes and endpoints to create your own URL mappings, or custom queries.
- Audience (User, Developer, Designer, Contributor, etc.): Developer
- Experience Level (Beginner, Intermediate, Advanced, Any): Intermediate
Prerequisites
It is assumed that the learner has already completed the following lessons:
- Beginner WordPress developer
- Modules 1 - 8
Learning Objectives
- Describe how to create a custom REST route
- Discuss the importance of Namespacing routes
- Explain how to interact with route arguments
- Explain different methods of return value
- Demonstrate how to implement security for a custom route
Related Resources and Other Notes
- https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/
Automation Code
//lesson
Lesson Development Checklist
- [ ] Gather any relevant links to Support, Docs, or related material
- [ ] Description and Objectives finalized
- [ ] Lesson created and announced to the team for review
- [ ] Lesson reviewed
- [ ] Lesson video submitted and published to WPTV
- [ ] Lesson created on Learn.WordPress.org
- [ ] Lesson video published to YouTube
- [ ] Lesson on Learn.WordPress.org updated with YouTube video
- [ ] Lesson published to Learn.WordPress.org
@jessecowens, I'm checking in to see if you're still keen to create the REST API lessons, starting with this one.
If you are, please comment on the lesson, and I'll assign it to you.
I generally work on giving folks about a week to write the script, and another week to create the first video draft, but let me know if this timing sounds unreasonable.
Hi @jonathanbossenger yes, I'd still like to take this module, I was just a little delayed coming back from WCUS last week. I'll have updates before the weekly meeting tomorrow
Thanks @jessecowens, totally understood about being delayed after travelling to a flagship WordCamp.
HI @jessecowens I wanted to follow up with you and find out how it's going. Do you still feel that you'll have time to contribute to this and the other lessons in this module
//assign
Hi @benazeer-ben, thanks for your interest in this issue!
If you have any questions, do not hesitate to ask them in our #training Slack channel.
Thank you for contributing!