- Ruby 4.0+
- PostgreSQL 14+
- Clone and Install:
bundle install- Database Setup:
bin/rails db:prepare- Start the Server:
bin/rails sGET /api/v1/restaurants- List all restaurants with nested menus.GET /api/v1/restaurants/:id- Detailed view of a single restaurant.
GET /api/v1/menus- List all menus across the system.GET /api/v1/menus/:id- View a specific menu with its items and prices.
The tool is exposed via a HTTP endpoint. To perform a conversion, ensure the server is running and submit a POST request with your JSON payload:
curl -X POST -H "Content-Type: application/json" \
-d @restaurant_data.json \
http://localhost:3000/api/v1/ingestionsbundle exec rspec --format documentation