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

Service base class #103

Merged
merged 2 commits into from May 20, 2016
Merged

Service base class #103

merged 2 commits into from May 20, 2016

Conversation

buchi
Copy link
Member

@buchi buchi commented May 20, 2016

Implements a base class for all services defined in plone.restapi that basically renders the results to JSON. This functionality has been removed in plone.rest (plone/plone.rest#52) an now needs to be done in plone.restapi.

Services now have to implement the reply() method to process the request. This method should return a JSON serializable data structure or the no content marker.

buchi added 2 commits May 19, 2016 19:50
The new base class defines a `reply()` method that can be overridden by service
implementations.
@lukasgraf
Copy link
Member

Looks good to me.

@lukasgraf lukasgraf merged commit 99d4749 into master May 20, 2016
@lukasgraf lukasgraf deleted the service-baseclass branch May 20, 2016 09:09
@tisto tisto removed the in progress label May 20, 2016
lukasgraf added a commit that referenced this pull request May 23, 2016
remove it from auto-checkout. After the change in #103 introducing
a service base class that is based on plone.rest.Service we require
at least plone.rest 1.0a6.
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

Successfully merging this pull request may close these issues.

None yet

3 participants