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

Include addable types constraints in plone.restapi #173

Closed
tisto opened this issue Dec 16, 2016 · 1 comment
Closed

Include addable types constraints in plone.restapi #173

tisto opened this issue Dec 16, 2016 · 1 comment
Assignees

Comments

@tisto
Copy link
Member

tisto commented Dec 16, 2016

Right now there is no way for a client to tell which content types are addable in a certain context (or globally).

The "types" endpoint just lists all existing content types, a first step would be to include the global_allow attribute there.

Though, we still need to include the information which content types are addable in a certain context. This would need to be embedded in the regular content response I guess.

Problem is we need to somehow solve the actions/framing API design in order to properly implement this.

@jaroel
Copy link
Member

jaroel commented Mar 4, 2017

  • add 'addable' to type info, based on context.getAllowedTypes. Same as the add menu.
  • allow @types on all context.

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

No branches or pull requests

2 participants