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

ffabss/ServiceMicroservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 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.

/services

/services/{skip}/{amount}

  • GET skips the first skip services and then returns the amount following services in form of ServiceResources

/services/{id}

  • GET returns the service with the specified id in form of a ServiceResource
  • PUT saves the service from the request body, in form of a ServiceDto, with the specified id and returns the old service with the specified id in form of a ServiceResource
  • DELETE removes the service with the specified id and returns it in form of a ServiceResource

/countServices

  • GET returns the number of available services

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 EmployeeResource {
    private int id;
    private String name;
    private AddressResource address;
    private String latitude;
    private String longitude;
}

Service

public class ServiceDto {
    private String name;
    private int employeeId;
    private Date date;
    private String address;
}

public class ServiceResource {
    private int id;
    private String name;
    private EmployeeResource employee;
    private Date date;
    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