Learn icon indicating copy to clipboard operation
Learn copied to clipboard

Custom routes and endpoints

Open jonathanbossenger opened this issue 1 year ago • 5 comments

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:

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

jonathanbossenger avatar Jul 24 '24 13:07 jonathanbossenger

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

github-actions[bot] avatar Sep 13 '24 14:09 github-actions[bot]

@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.

jonathanbossenger avatar Oct 01 '24 13:10 jonathanbossenger

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

jessecowens avatar Oct 01 '24 14:10 jessecowens

Thanks @jessecowens, totally understood about being delayed after travelling to a flagship WordCamp.

jonathanbossenger avatar Oct 01 '24 19:10 jonathanbossenger

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

jonathanbossenger avatar Oct 23 '24 10:10 jonathanbossenger

//assign

benazeer-ben avatar Mar 04 '25 04:03 benazeer-ben

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!

github-actions[bot] avatar Mar 04 '25 04:03 github-actions[bot]