id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 42737 Add method wp.api.getModelByType for retrieving api models mkaz adamsilverstein " For Gutenberg, it will be easier and less error prone to fetch the wp.api.model by retrieving by type instead of creating a route and searching for the model that matches that route. An open detail to work out is if namespacing is needed, can objects have the same name in different API namespaces in the same instance of wp.api. A potential solution could be an optional second argument. For example: `getModelByType( type, versionString = 'wp/v2' )` Related to #41111 Original Slack Discussion at: https://wordpress.slack.com/archives/C5UNMSU4R/p1511878493000062 " feature request assigned normal Future Release REST API 5.1 normal needs-patch javascript