Create HTTP Endpoint for Content Template Preview Entities
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3541006. -->
Reported by: [tedbow](https://www.drupal.org/user/240860)
Related to !19 !1475
>>>
<h3 id="overview">Overview</h3>
<p><img src="https://www.drupal.org/files/issues/2025-08-12/design_preview_entity_select.png" alt="screenshot for selecting entity"><br>
When the user is creating or editing a content template they need to select an entity of the same bundle to use to preview template.</p>
<p>So we need a HTTP endpoint to return a listing of entities</p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<ol>
<li>Create a new route that accepts an entity type id and bundle</li>
<li>The endpoint should return a json list with the entity labels and ids</li>
<li>It should only return published entities that the user has view access too</li>
</ol>
<h3 id="ui-changes">User interface changes</h3>
> Related issue: [Issue #3544865](https://www.drupal.org/node/3544865)
> Related issue: [Issue #3541015](https://www.drupal.org/node/3541015)
> Related issue: [Issue #3541000](https://www.drupal.org/node/3541000)
issue