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 with FastAPI

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.

Syllabus

  • Unit 1: Adding Audio to Recipes
    • Implement Text-to-Speech Audio Generation Function
    • Register TTS Route
    • Implement TTS Endpoint Request Validation
    • Complete Text-to-Speech Audio Streaming
    • Testing TTS API Endpoint
  • Unit 2: Listing Ingredients and Reviews
    • Setting Up Basic FastAPI Endpoint Structure
    • Implement Get All Ingredients FastAPI Endpoint
    • Creating Review Schema with Pydantic Validation
    • Implementing Safe JSON Parsing for Reviews POST Endpoint
    • Review Submission Persistence
    • Return a correct Message for the User
  • Unit 3: Exporting Recipes to CSV
    • Fix Python Import Paths for CSV Export Script
    • Working with SQLAlchemy Database Sessions
    • Complete Recipe CSV Export File Creation
    • Format Recipe Ingredient Lists for CSV Export
    • Format Recipe Steps for CSV Export
    • Complete Recipe CSV Export with Data Writing and Success Messages
    • Test Complete CSV Export Tool

Reviews

Start your review of Final Additions to our Smart Cooking API with FastAPI

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.