Skip to content

VladimirYushkevich/calendar-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calendar-service Build Status codecov

Description:

REST API for scheduling calls between customers and on of stylists from available pool.

Run service:

./gradlew clean build -i && java -jar build/libs/calendar-service-0.0.1-SNAPSHOT.jar

The Task

  • internal users to manage stylists readiness to work;
  • customers to see the list of available time slots (as per previous screenshot, see docs folder);
curl -X POST localhost:8080/api/v1/stylist/availability/search -d '{"start": "2018-10-22", "end": "2018-10-30"}' -H 'Content-Type: application/json' | jq
  • customers to book a call on a specific time slot;
curl -X POST localhost:8080/api/v1/order -d '{"customerId": 1, "day": "2018-10-30", "timeSlotIndex": 2}' -H 'Content-Type: application/json' | jq
  • automatic booking of calls for orders uploaded via spreadsheets as described above
curl -X POST localhost:8080/api/v1/order/bulk -d '{"start": "2018-10-29", "end": "2018-10-30", "customerIds": [1, 2]}' -H 'Content-Type: application/json' | jq

Usage:

In memory DB console
SWAGGER

Releases

No releases published

Packages

No packages published