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

Keeping plone.restapi and plone server API in sync (was: Doubt about schema / content type serialization) #157

Open
bloodbare opened this issue Nov 14, 2016 · 3 comments

Comments

@bloodbare
Copy link
Member

Why its serialized the content types and schema based on the fieldsets and not on the schema. I mean , the expected json representation is linked to the fielsets , and would make more sense to base on schemas and its invalidation and requiremenets.

@tisto

@tisto
Copy link
Member

tisto commented Nov 14, 2016

@bloodbare can you please provide an example of what you mean? I'm not 100% sure I understand everything your wrote. :)

@bloodbare
Copy link
Member Author

So the problem is on schema serialization, that we are not showing any schema information. We have like a dual layer of grouping properies, fieldsets and schemas (Behaviors for example).

Then there is another time the same problem I already pointed that having two separate json serializers (plone.jsonserializer and plone.restapi) makes really hard to maintain and plone.jsonserializer was rendering the fields on the fieldset not on the properties... reading actual plone.restapi it looks like is different now and we are unsync. We may need to end having two different API's.

@tisto tisto changed the title Doubt about schema / content type serialization. Keeping plone.restapi and plone server API in sync (was: Doubt about schema / content type serialization) Feb 27, 2017
@tisto tisto mentioned this issue Feb 27, 2017
56 tasks
@tisto
Copy link
Member

tisto commented Feb 27, 2017

This issue is about two things:

  1. A common API spec for plone server and plone.restapi
  2. A common serializer for plone server and plone.restapi

plone server uses its own API specification format. We should take another look at swagger etc. to see if it is possible to support traversal with those standard tools. The latest discussion around making connexion framework agnostic also looks interesting: spec-first/connexion#394

cc @bloodbare

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