Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

ffabss/EmployeeMicroservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST - API for our Service-Manager

The optional request parameter boolean address indicates whether the address should be included or not.

/employees

/employees/{skip}/{amount}

  • GET skips the first skip employees and then returns the amount following employees in form of EmployeeResources

/employees/{id}

  • GET returns the employee with the specified id in form of a EmployeeResource
  • PUT saves the employee from the request body, in form of a EmployeeDto, with the specified id and returns the old employee with the specified id in form of a EmployeeResource
  • DELETE removes the employee with the specified id and returns him in form of a EmployeeResource

/countEmployees

  • GET returns the number of available employees

Classes

Address from LocationIQ

public class AddressResource {
    private String house_number;
    private String road;
    private String hamlet;
    private String village;
    private String county;
    private String state;
    private String postcode;
    private String country;
    private String country_code;
    private String town;
    private String street;
    private String city;
}

Employee

public class EmployeeDto {
    private String name;
    private String address;
}

public class EmployeeResource {
    private int id;
    private String name;
    private AddressResource address;
    private String latitude;
    private String longitude;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages