Skip to content

savannahvaith/Spring-Marvel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Response Entities

ResponseEntity represents the whole HTTP response:

  • Status Code
  • Headers
  • Body

We can use it to configure the Response that is sent from Spring to the Presentation Layer.

public ResponseEntity<Marvel> getAll(){
	return new ResponseEntity<Marvel>(this.service.getAll(), HttpStatus.OK); 
}

These are used in the Controller component of the application.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages