In this chapter, quite a few changes will be implemented. In fact, this chapter really sets our application development on an acceleration ramp.
Before diving into the code, we need to brush up on a few concepts about REST.
REST is an architecture style. Its name is an abbreviation for Representational State Transfer. The term was invented by Roy Fielding, one of the principal authors of the HTTP specification. A REST architecture is designed around a few markers:
Identifiable resources: Resources define the domain. A resource must be identifiable by a URI. This URI must be as self-explanatory as possible using resource categories and hierarchies. Our resources will be indices snapshots, stock snapshots, historical index data, historical stock data, users, and so on.
HTTP as a communication protocol: We interact with resources using a limited number of HTTP methods (
GET
,POST
,PUT
,DELETE
,HEAD
, andOPTIONS
).Resource representation: A resource is visualized...