REST API for scheduling calls between customers and on of stylists from available pool.
./gradlew clean build -i && java -jar build/libs/calendar-service-0.0.1-SNAPSHOT.jar
- 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