In REST based architectures what's the difference between a resource and a method. Is there one?
A resource is something your application defines; they're very similar to objects. A method is one of the HTTP verbs, e.g., GET, POST, PUT, DELETE. They are similar to methods that get invoked on your resource.
I really recommend you read Architectural Styles and the Design of Network-Based Architectures (Dr. Fielding's dissertation, where he defines REST) and/or RESTful Web Services, which does a stellar job of showing how to put the theory into practice.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With