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

Adding WP Coderpress Endpoints #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

cmatosbc
Copy link

This package intends to provide a more straightforward way to add custom endpoints to Wordpress Rest API (added to mu-plugins with no hooks, as a suggestion), also using a Facade pattern which allows:

  • To attach PSR-16 compliant cache drivers of any nature
  • To attach as many middlewares as you want to modify the request or provide a particular response
  • Interfere in the way cached responses are stored and retrieved (JSON, serialize(), igbinary_serialize())
  • Provide a port to add multiple custom endpoints without repeating code and sharing cache, middleware and variables within, including a dynamic endpoint generation
  • Offer common middlewares to handle common scenarios in REST API development

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant