Skip to the content.

Intro to RESTful Spring

-

What is REST?

-

Client-Server

-

Stateless

-

Layered System

-

Cache

-

Uniform Interface

-

Code on Demand

-

URI

-

URI Templates

-

Representation

-

HTTP Methods

-

HTTP GET Method

The GET method is used to retrieve information from the given server using a given URI. Requests using GET should only retrieve data and should have no other effect on the data.

-

Idempotence

An operation is considered to be idempotent if it produces the same server state whether we apply it once or any number of times. HTTP methods such as GET, HEAD (which are also safe), PUT, and DELETE are considered to be idempotent, guaranteeing that clients can repeat a request and expect the same effect as making the request once.

-

HTTP POST Method

A POST request is used to send data to the server, for example: customer information, file upload, etc. using HTML forms.

-

HTTP HEAD Method

Same as GET, but transfers the status line and header section only.

-

HTTP PUT Method

Replaces all current representations of the target resource with the uploaded content.

-

HTTP DELETE Method

Removes all current representations of the target resource given by a URI.

-

HTTP CONNECT Method

Establishes a tunnel to the server identified by a given URI.

-

HTTP OPTIONS Method

Describes the communication options for the target resource.

-

HTTP TRACE Method

Performs a message loop-back test along the path to the target resource.

-

CRUD

   
Create Read
Update Delete
   

-

HTTP Status Codes

-

1xx Informational

-

2xx Success

-

3xx Redirection

-

4xx Client Error

-

WEB Socket

A protocol providing full-duplex communication channels over a single TCP connection.

-

Servlet

A servlet is a small program that runs within a Web server. Servlets receive and respond to requests from Web clients, usually across HTTP, the HyperText Transfer Protocol.

-

Aspect-Oriented Programming

Aspect-Oriented Programming (AOP) complements Object-Oriented Programming (OOP) by providing another way of thinking about program structure. The key unit of modularity in OOP is the class, whereas in AOP the unit of modularity is the aspect. Aspects enable the modularization of concerns, such as transaction management that cut across multiple types and objects.

-

ORM

Object-relational mapping (ORM) is a technique (a.k.a. design pattern) of accessing a relational database from an object-oriented language (Java, for example)

-

Transaction

In computer programming, a transaction usually means a sequence of information exchange and related work (such as database updating) that is treated as a unit for the purposes of satisfying a request and for ensuring database integrity.

-

Bean

A bean is an object that is instantiated, assembled, and otherwise managed by an IoC container. These beans are created with the configuration metadata that you supply to the container

-

Inversion Of Control (IOC)

In software engineering, inversion of control (IoC) describes a design in which custom-written portions of a computer program receive the flow of control from a generic, reusable library.

-

Dependency Injection (DI)

Dependency Injection design pattern allows us to remove the hard-coded dependencies and make our application loosely coupled, extendable and maintainable.

-