Now that the services are implemented, let's move on to the orchestration layer with the RESTful endpoints. Since all of the real work is done by the service implementations, the endpoints are used to stitch the capabilities together and to provide HTTP access for the user interface layer to use these capabilities. The implementation code, therefore, is concise and easy to understand.
The app.py file contains the RESTful endpoint implementations. Here's a snippet from app.py that includes the imports, configuration, and initialization code:
from chalice import Chalice
from chalicelib import storage_service
from chalicelib import transcription_service
from chalicelib import translation_service
from chalicelib import speech_service
import base64
import json
#####
# chalice app configuration
#####
app = Chalice(app_name='Capabilities')
app...