Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial - WP REST API modifying responses #1361

Closed
15 tasks done
jonathanbossenger opened this issue Feb 20, 2023 · 8 comments
Closed
15 tasks done

Tutorial - WP REST API modifying responses #1361

jonathanbossenger opened this issue Feb 20, 2023 · 8 comments
Assignees

Comments

@jonathanbossenger
Copy link
Collaborator

jonathanbossenger commented Feb 20, 2023

Topic Description

The WordPress REST API provides an interface for applications to interact with your WordPress site by sending and receiving data as JSON (JavaScript Object Notation) objects. By default, it provides REST endpoints (URLs) representing the posts, pages, taxonomies, and other built-in WordPress data types. Your application can send and receive JSON data to these endpoints to query, modify and create content on your site. However, it is also possible to extend the WP REST API, in order to perform specific actions that are outside of the scope of the default routes and endpoints. In this session, you will learn about one of the ways you can extend the WP REST API, by modifying REST responses.

Related Resources

Links to related content on Learn, HelpHub, DevHub, GitHub Gutenberg Issues, DevNotes, etc.

  • [ ]

Guidelines

Review the team guidelines

Tutorial Development Checklist

  • Vetted by instructional designers for content idea
  • Provide feedback of the idea
  • Gather links to Support and Developer Docs
  • Review any related material on Learn
  • Define several SEO keywords to use in the article and where they should be prominently used
  • Description and Objectives finalized
  • Tutorial created and announced to the team for Q/A review
  • Tutorial reviewed and ready to publish
  • Tutorial submitted and published to WPTV
  • Tutorial published on WPTV
  • Tutorial captioned
  • Tutorial created on Learn.WordPress.org
  • Tutorial post reviewed for grammar, spelling, etc.
  • Tutorial published on Learn.WordPress.org
  • Tutorial announced to Marketing Team for promotion
@jonathanbossenger jonathanbossenger added [Content Type] Tutorial Awaiting Triage Issues awaiting triage. See Training Team handbook for how to triage issues. labels Feb 20, 2023
@jonathanbossenger jonathanbossenger self-assigned this Feb 23, 2023
@jonathanbossenger jonathanbossenger removed the Awaiting Triage Issues awaiting triage. See Training Team handbook for how to triage issues. label Feb 23, 2023
@jonathanbossenger
Copy link
Collaborator Author

@jonathanbossenger
Copy link
Collaborator Author

Tutorial ready for review

wp-rest-api-modifying-responses.mp4

Note to reviewers:

  • The final tutorial on Learn WordPress will include the full script, which includes all links to resources and code snippets.
  • At the 2:02 minute mark, there is a placeholder for a screen that still needs to be added. That tutorial is not yet live, and so I can't add that screenshot. I will make sure to do so before the tutorial is published.

@nomad-skateboarding-dev

As per usual, this is a non-developer review. However, you do such a good job on these tutorials, Jonathan, that I'll be changing my developer label soon! Great job! 🥇

Specific Feedback

  • 3:58 Volume drops by half and is distorted.
  • 4:41 - 4:51 it sounds like all sound dropped? But you could just be pausing as you're typing the example?
  • 7:26 volume returns to original level and distortion gone.
  • Overall this was easy to follow and paced perfectly for myself.
  • I really felt it helpful when you used the colored border and arrow to highlight the code at 2:16
  • The way you highlighted or retyped the specific code throughout was very helpful and easy for me to follow.

@courtneyr-dev
Copy link
Collaborator

Watching the video in GitHub's width leaves me wanting to zoom in more to see the sidebars and top nav buttons in Postman. If the video player is rather small, exaggerating zoom to stop before mobile breakpoints tends to be my preference.

Same notices about the audio. It sounds like a background sound removal tool over-processed those areas.

The content is fantastic though.

@jonathanbossenger
Copy link
Collaborator Author

Thanks for the feedback folks

3:58 Volume drops by half and is distorted.
4:41 - 4:51 it sounds like all sound dropped? But you could just be pausing as you're typing the example?

Yeah I was experimenting with sound removal tools on this video, this one didn't seem to turn out great. I'll upload a better version shortly.

Watching the video in GitHub's width leaves me wanting to zoom in more to see the sidebars and top nav buttons in Postman. If the video player is rather small, exaggerating zoom to stop before mobile breakpoints tends to be my preference.

The difficulty, especially with an app like Postman, is the more you Zoom in, the less space you have to show the various panels of data. I'm currently at a +2 zoom (whatever that works out to on an electron app, I have no way to check) and if I go a level higher, it's difficult to see the full response on screen.

@jonathanbossenger
Copy link
Collaborator Author

Updated video with better audio

wp-rest-api-modifying-responses-enhanced.mp4

@nomad-skateboarding-dev

This sounds fantastic @jonathanbossenger . Well done. 🙂

@jonathanbossenger
Copy link
Collaborator Author

https://learn.wordpress.org/tutorial/wordpress-rest-api-modifying-responses/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📜 Published or Closed
Development

No branches or pull requests

3 participants