Skip to content

Commit ddadacd

Browse files
authored
Merge pull request #7705 from umbraco/adding-allow-content-type-config
Adding allow list data type configuration for 17
2 parents 7272219 + 66e023c commit ddadacd

File tree

1 file changed

+31
-1
lines changed
  • 17/umbraco-cms/reference/content-delivery-api

1 file changed

+31
-1
lines changed

17/umbraco-cms/reference/content-delivery-api/README.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ A few additional configuration options will allow you to restrict access to the
8585
"PublicAccess": true,
8686
"ApiKey": "my-api-key",
8787
"DisallowedContentTypeAliases": ["alias1", "alias2", "alias3"],
88+
"AllowedContentTypeAliases": ["allowedAlias1", "allowedAlias2", "allowedAlias3"],
8889
"RichTextOutputAsJson": false
8990
}
9091
}
@@ -95,7 +96,36 @@ A few additional configuration options will allow you to restrict access to the
9596

9697
Find a description of each of the configuration keys in the table below.
9798

98-
<table><thead><tr><th width="340">Configuration key</th><th>Description</th></tr></thead><tbody><tr><td><code>PublicAccess</code></td><td>Determines whether the enabled Delivery API should be publicly accessible or if access should require an API key.</td></tr><tr><td><code>ApiKey</code></td><td>Specifies the API key needed to authorize access to the API when public access is disabled. This setting is also used to access draft content for preview.</td></tr><tr><td><code>DisallowedContentTypeAliases</code> </td><td>Contains the aliases of the content types that should never be exposed through the Delivery API, regardless of any other configurations.</td></tr><tr><td><code>RichTextOutputAsJson</code></td><td>Enable outputting rich text content as JSON rather than the default HTML output. JSON can be a preferred format in many scenarios, not least because it supports the routing of internal links better than HTML does.</td></tr></tbody></table>
99+
<table>
100+
<thead>
101+
<tr>
102+
<th width="340">Configuration key</th>
103+
<th>Description</th>
104+
</tr>
105+
</thead>
106+
<tbody>
107+
<tr>
108+
<td><code>PublicAccess</code></td>
109+
<td>Determines whether the enabled Delivery API should be publicly accessible or if access should require an API key.</td>
110+
</tr>
111+
<tr>
112+
<td><code>ApiKey</code></td>
113+
<td>Specifies the API key needed to authorize access to the API when public access is disabled. This setting is also used to access draft content for preview.</td>
114+
</tr>
115+
<tr>
116+
<td><code>DisallowedContentTypeAliases</code></td>
117+
<td>Contains the aliases of the content types that should never be exposed through the Delivery API.</td>
118+
</tr>
119+
<tr>
120+
<td><code>AllowedContentTypeAliases</code></td>
121+
<td>Contains the aliases of the content types that should be exposed through the Delivery API. This configuration takes precedence over the <code>DisallowedContentTypeAliases</code> so if there are any duplicates, they will be allowed regardless. If this configuration contains any aliases, all other aliases will not be exposed through the Delivery API. If the configuration is empty, all aliases will be exposed, unless they are included in <code>DisallowedContentTypeAliases</code></td>
122+
</tr>
123+
<tr>
124+
<td><code>RichTextOutputAsJson</code></td>
125+
<td>Enable outputting rich text content as JSON rather than the default HTML output. JSON can be a preferred format in many scenarios, not least because it supports the routing of internal links better than HTML does.</td>
126+
</tr>
127+
</tbody>
128+
</table>
99129

100130
{% hint style="info" %}
101131
**Are you using Umbraco Cloud?**

0 commit comments

Comments
 (0)