WP-API / widgets-endpoints

Experimental WordPress REST API Widgets endpoints.
7 stars 1 forks source link

/widget-types/ endpoint #3

Open NateWr opened 8 years ago

NateWr commented 8 years ago

@westonruter I wasn't there for the discussion around switching /widgets/types/ to /widget-types/. But I presume this endpoint should also be switched to /widget-types/[type]?

westonruter commented 8 years ago

You're right. We talked about this briefly, with the concern that /widgets/types could cause ambiguity with a widget that had an id_base of types if attempting to get all widgets of that type via /widgets/:id_base. True, this would be unlikely, and it's also true that it would be great if we could switch widgets to be universally addressable by a single numeric ID without having to include the id_base prefix.