-
Notifications
You must be signed in to change notification settings - Fork 1
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
/widgets/:id or /widgets/:id_base? #4
Comments
The Ideally widgets would be eliminated from being stored in options altogether and they would have a full-on |
I thought that we would be "short-circuiting" this issue by using I am struggling to find the use-case for the It seems more logical to me that With the current patter, Edit - sorry hit enter before finishing. Anyway, I will go ahead and issue a PR for the |
@NateWr yeah, I think you're right. We don't need In both cases, listing all widgets of a given type can be done via 👍 |
I think I've set this up as you suggest now. See WP-API/menus-endpoints#17 |
The get_widget_endpoint branch implements (mostly) the base
/widgets
endpoint.I was surprised to see the next route was
/widgets/:id_base
. I would expect that the endpoint would work like posts, where you retrieved a specific widget with/widgets/:id
. Wouldn't that make more sense? We could implementid_base
as a filter on the/widgets
base just likesidebar
.(I appreciate that I wrote the initial endpoint registration. Just want to double-check that there wasn't some decisions about
/widgets/:id_base
that I can't remember).The text was updated successfully, but these errors were encountered: