Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee-Index-REST-API

Implementation of RESTful API for a mock employee database system as an exercise in OOP and Java programming.

How to use:

Method Endpoint Description
GET /employees Retrieves list of all employees
POST /employees Adds new employee
PUT /employees/{id} Amends specific employee
DELETE /employees/{id} Deletes employee

Command Examples

GET http://localhost:8080/employees

PUT http://localhost:8080/employees/3 {"name": "Hamada", "role": "Athlete"}

Changelog

v2.0 Added MySQL persistent database

The program was switched from a H2 memory database to a MySQL database

v1.4 Bug Fixes

Bug fixes in database loading methods.

v1.3 Removing SpringBoot annotations

Removed all autoconfiguring of beans and controller handling.

v1.2 JUnit Tests 1

Three JUnit tests were added to test basic program functionality:

  • Initialization sanity test
  • Unit test for DTO wrapper
  • Slice test for GET method

v1.1 Data Transfer Objects

Addition of DTOs to isolate the calls from the direct database, with a dedicated mapper class.

v1.0 Initial Program

Initial application featuring a H2 database in a Spring boot environment, comprised of a simple employee class, a JPA repository, and a simple controller.

About

A REST API demo with GET, POST, PUT and Delete abilities

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages