Skip to content

A SpringBoot MVC project that manages employees in an organization

Notifications You must be signed in to change notification settings

sreekar1125/Springboot-Employee-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Springboot-Employee-Application

A SpringBoot MVC project that manages employees in an organization
For more info -> Problem Statement.pdf

Run project

 Extract the project 
 Open in any IDE like STS or Eclipse etc.. 
 Right click and select Run as 
 Select Spring Boot Starter 
 Open localhost:8080

Database Setup

 Open MongoDb compass -> create a database "sreekar" -> create a collection "employees"

Structure of document while inserting data -> POST : "localhost:8080/v1/addEmployee"

{
	"name" : "Shiva",
	"phone" : "7660815",
	"email" : "Shiva@gmail.com",
	"reportsTo" : "2c983dfa-613f-40b4-a2eb-2830d10304ea",
	"image" : "https://media.licdn.com/dms/image/C5603AQHOeatHfjLymw/profile-displayphoto-shrink_800_800/0/1638463445803?e=2147483647&v=beta&t=Ui9uEReSp9CVcobWfAASMyE6gMIpyl1VY8AicktPe38"
}

GET : localhost:8080/v1/getAllEmployees

DELETE : localhost:8080/v1/deleteEmployee/{id}

PUT : localhost:8080/v1/updateEmployee/{id}

Intermediate Level :

GET : localhost:8080/v1/getNthManager/{id}/{n}

GET : localhost:8080/v1/getAllEmployees/{field} -> Sort using a field like name or email etc...

GET : localhost:8080/v1/getAllEmployees/pageNo={pageNo}/pageSize={pageSize}/sortBy={field} -> Sort and pagination

Advanced level

-> EMail is implemented in createEmployee

Please go through all the screenshots

addEmployee(1)



addEmployeeResult



getAllEmployees



delete



getNthManager(1)



getNthManager(2)



getNthManager(3)



paging Sorting



sortByEmail



sortByName



update



SendMail

About

A SpringBoot MVC project that manages employees in an organization

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published