Skip to content

ankanchanda/sample-architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

layered architecture

DTO(Data Transfer Object)

  • Request DTO
    • map the data coming from the client to request dto
    • controller layer takes the responsibility to do the mapping
  • Response DTO
    • map the data coming from the db/repository to request dto
    • service layer takes the responsibility to do the mapping

Utitlity

Anything common across any layers

Entity

  • Entity are classes that are direct representation of our tables
  • Used by repository mostly

Configuration

  • application.properties to define fixed values

Controller Layer

  • contains all the apis that client interacts with

Service Layer

  • contains business logic which interacts with Repository Layer to giver response back to Controller Layer

Repository Layer

  • Interacts with DB and gives response back to Service Layer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages