wp-parsely icon indicating copy to clipboard operation
wp-parsely copied to clipboard

REST API Refactor: Apply fixes/suggestions from the other PRs

Open vaurdan opened this issue 5 months ago • 1 comments

Description

This PR applies the suggestions that have been added to both #2731 and #2735

#2731

  • Changed the REST API description fields to be more descriptive of what they meant to do.

#2735

  • Converted get_endpoint_name and get_route_prefix to static methods
  • Replaced editor-sidebar and dashboard-widget strings with the correct call to the static get_endpoint_name method.

Motivation and context

  • Apply pending feedback from #2731 and #2735

How has this been tested?

Tested locally and validated that the tests still passing.

vaurdan avatar Sep 27 '24 17:09 vaurdan