Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Final Additions to our Smart Cooking API

via CodeSignal

Overview

Add final touches to your app for better interactivity. Use gTTS for Text-to-Speech recipe playback, let users submit reviews and ratings, and list all ingredients. Build a script to export recipes to CSV. These features make your assistant ready for real users seeking culinary inspiration.

Syllabus

  • Unit 1: Generating Audio with gTTS
    • Implement Text to Speech Function
    • Register Your First TTS Route
    • Handle TTS Request Parameters
    • Complete the Audio Generation Endpoint
    • Test Your TTS API Endpoint
  • Unit 2: Ingredients and Reviews Endpoints
    • Adding New Route Endpoints
    • Implementing the Ingredients List Endpoint
    • Parsing JSON Data from Requests
    • Adding Input Validation to Reviews
    • Persisting Reviews to the Database
  • Unit 3: Exporting Recipes to CSV
    • Setting Up Script Imports
    • Setting Up Flask Application Context
    • Writing CSV Files with Headers
    • Formatting Recipe Ingredients for Export
    • Flattening Recipe Steps for CSV
    • Writing Recipe Data to CSV Rows
    • Complete CSV Export Script Assembly

Reviews

Start your review of Final Additions to our Smart Cooking API

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.