Molten Framework: Building HTTP APIs
This course introduces you to a breadth of features available in the Molten framework to help you build HTTP APIs. Youll begin by creating a virtual environment installing Molten and various other libraries such as Pytest to test out your Molten apps and installing Gunicorn to serve your apps. Youll then move on to creating REST APIs using the Molten framework. Youll create a very basic REST API with only one route that maps to a function and the API to process an HTTP GET request. Youll also explore the use of a QueryParam object to handle query parameters passed in an HTTP request. Youll next test your Molten APIs using Pytest by writing some simple tests to ensure an HTTP 200 status code is returned when a correct request is sent to the server and an error code is returned with the response otherwise. Youll also learn how these tests can be executed and how to analyze their outputs. Youll learn about the processing of POST requests how to ensure the validity of POST data using a Molten Schema instance different ways to define a schema and how to use a forward reference. Youll explore the built-in objects available in the Molten framework and how to pass in a plain Python dictionary containing settings for an app. Finally youll see how settings can be saved in an external JSON file and then imported into a Molten app and how to load settings defined within a TOML file.