-
Notifications
You must be signed in to change notification settings - Fork 27
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
feedback on Service layer contract limitation #23
Comments
Thanks for the feedback. Sorry for the late response; I've been away on vacation for much of Dec. The service adapter contract was modeled after the basic REST operations; you can inject your own adapters, but you do end needing to operate within the constraints REST itself imposes (basically, performing create/update/list/show/delete operations against resources). Do you have some examples of where you are having trouble making things fit? I suspect it may be similar to issues I encountered myself and had to step back and re-think how to do things to make them amenable to a resource-oriented/RESTful design in some cases. |
Thanks for getting back to me. After I read the following two links, I decided that I needed to change my http://stackoverflow.com/questions/2001773/understanding-rest-verbs-error-codes-and-authentication On Wed, Jan 7, 2015 at 1:14 PM, sriddell [email protected] wrote:
|
Glad it's working for you. If you have resources that only support a subset of the methods, you can also specify this in the DSL; the plugin will return a 405 with an Allow header specifying the methods supported by the resource if an unsupported request is made. See 'Limiting methods for a Resource' in the README for the details. |
Hello,
Just wanted to say that this is an awesome plugin! I appreciate all the hard work that went into its creation and documentation. I am using it successfully for the CRUD operations that I want to expose as rest services.
However, I now need to expose non-CRUD services as REST services. For example, I would like to create a registration service (to allow users to register for the website). There are a lot of operations such as the aforementioned that can not meet the ResfulServiceAdapter contract.
While I am not expecting an answer (or anything) from you, I am certain that other users are trying to solve the same problems. I am going to research how to do this now, but it would be nice to include as note about how you would accomplish the goal of exposing a service that doesn't fit into the contract.
Thanks again!
The text was updated successfully, but these errors were encountered: