Service Class
Encapsulates the functionality of code that works as a unit or provides a specific business purpose.
Types of HTTP Methods
2. Idempotent - GET, PUT, DELETE (Not Idempotent - POST).
Safe HTTP Method
A request that does not change the server.
Idempotent HTTP Method
A request that has the same result regardless of how many times it is completed.
HTTP Methods - GET Usage
Generally used to retrieve web pages to display (images, documents, stylesheets, script files, search pages).
GET Method Characteristics
GET requests are easily bookmarked because the parameters are in the URL. GET does not change the state on the server and has the same result each time it is repeated so it is Safe Idempotent.
Serialization
Transforming a Java Object to a string representation of the object, JSON. Object → JSON
Deserialization
Transforming a string representation of an object, JSON, into a Java Object. JSON → Object
HTTP Methods - POST Usage
Used when:
HTTP Methods - POST Usage
HTTP Methods - PUT Usage
Used to:
HTTP Methods - PUT Characteristics
HTTP Methods - DELETE Usage
Used to:
HTTP Methods - DELETE Characteristics