Skip to content
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

Hide viewless content from API #1296

Closed
technicallyerik opened this issue Apr 14, 2020 · 2 comments
Closed

Hide viewless content from API #1296

technicallyerik opened this issue Apr 14, 2020 · 2 comments

Comments

@technicallyerik
Copy link
Contributor

Feature request / suggestion: Viewless content should be hidden from the API.

A user might have either data submitted from Bolt Forms into a content type, or maybe a certain content type has content restricted to authenticated users via 3rd party code.

We can piggyback off the viewless: false parameter in content types to hide this content from the public API.

curl -X GET "http://localhost/api/contents?contentType=viewless_content_type" -H "accept: application/ld+json"

Details

Question Answer
Relevant Bolt Version 4.0-RC 15
Install type Composer install
PHP version 7.3.9
Web server Apache
@bobdenotter
Copy link
Member

fixed by #1305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants