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

Refactor for operations support #946

Merged
merged 1 commit into from
Jan 5, 2017
Merged

Conversation

lgebhardt
Copy link
Member

This PR is preparing for the support of multiple operations in a request. A separate PR to add that support will be coming shortly.

  • All base spec requests now are handled in a single operation:
    This is needed to have a one to one mapping of responses to operations.

  • OperationResults functions moved to the ResponseDocument:
    This change is needed to allow subsequent operations to reference the results of prior operations through the use of JSON pointers. For this to function the results must be serialized after processing and the RequestParser will need access to the prior results to resolve pointers. So the need for an intermediate storage of operation results is no longer needed.

  • OperationDispatcher functions moved to ActsAsResourceController.

All base spec requests now are handled in a single operation
OperationResults functions moved to the ResponseDocument
OperationDispatcher functions moved to ActsAsResourceController
@dgeb dgeb merged commit d9fdcb3 into cerebris:master Jan 5, 2017
@dgeb
Copy link
Member

dgeb commented Jan 5, 2017

Great work, @lgebhardt! This should be a solid foundation for processing multiple operations.

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

2 participants