This is an attempt to complete Soho House Reception Scheduler challenge. Project setup and implementation is done within the 2 hour time limit.
-
Project setup
- rspec, activerecord, etc...
-
Basic shift scheduler
-
Baisc API
# Clone the project
cd project_dir
bundle
rackup
curl -X "POST" "http://localhost:9292/houses" \
-H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
--data-urlencode "name=FooBar" \
--data-urlencode "address=London"
curl -X "GET" "http://localhost:9292/houses"
curl -X "POST" "http://localhost:9292/employees" \
-H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
--data-urlencode "name=Joe Doe" \
--data-urlencode "house_id=1"
curl -X "GET" "http://localhost:9292/employees"
curl -X "POST" "http://localhost:9292/shifts" \
-H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
--data-urlencode "employee_id=1" \
--data-urlencode "house_id=1" \
--data-urlencode "to=2018-05-29T19:56:42+00:00" \
--data-urlencode "from=2018-05-29T18:56:42+00:00"
curl -X "GET" "http://localhost:9292/shifts/1"
ID of the house