Molten Framework: Advanced Features

Molten 1.0    |    Intermediate
  • 11 videos | 1h 23m 25s
  • Includes Assessment
  • Earns a Badge
Rating 4.0 of 3 users Rating 4.0 of 3 users (3)
This course covers the use of features in the Molten framework to make your HTTP APIs meaningful and easy to use and test. You'll begin by connecting your Molten application to a SQLite database, including the creation of a cursor to work with the database. You'll then wire up your app so that all the data sent in using POST requests to a specific route is written out to the database. You'll also define handlers for GET requests for that same data by reading from the database. Next, you'll then look at adding middleware into your app and set this middleware to check request headers for the authorization to invoke requests. You'll also tweak the middleware to distinguish between certain types of requests so that authorization is only required for some of them. You'll also see how you can dynamically generate documentation for your Molten application using the OpenAPIHandler. You'll explore how you can use the OpenAPIUIHandler to produce a Swagger UI, which can be used by developers to test the application and also by users to figure out exactly how to use your APIs. Finally, you'll learn how you can serve images to clients using Molten, including attaching a local file to a Response object and returning it to the client.


  • Discover the key concepts covered in this course
    Connect to a sqlite database using the python sqlite3 library and define sql queries to run against that database from your molten app
    Wire up your molten application so that the data passed in through post requests is written out to a sqlite database
    Read data from a database when a get request is submitted to your molten app
    Add a middleware layer into your app to verify authorization information in http request headers
    Define a middleware layer which distinguishes between requests when checking for authorization
  • Create an openapihandler instance which dynamically generates documentation for your molten application
    Use the openapiuihandler class to generate a swagger ui for your molten application
    Use molten's httpsecurityscheme to enable the use of authorization from the swagger ui
    Build a molten application which returns an http response containing binary data
    Summarize the key concepts covered in this course


  • 2m 39s
  • 9m 30s
  • Locked
    3.  Writing Data in a POST Request to a Database
    8m 58s
  • Locked
    4.  Handling a GET Request with a Database Read
    11m 33s
  • Locked
    5.  Using Middleware to Check Request Headers
    10m 45s
  • Locked
    6.  Distinguishing between Request Types
    5m 57s
  • Locked
    7.  Generating OpenAPI Documentation
    10m 25s
  • Locked
    8.  Generating a Swagger UI
    8m 7s
  • Locked
    9.  Using the Swagger UI
    7m 26s
  • Locked
    10.  Serving Images
    6m 4s
  • Locked
    11.  Course Summary
    2m 2s


Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.


Rating 2.0 of 1 users Rating 2.0 of 1 users (1)
Rating 4.6 of 49 users Rating 4.6 of 49 users (49)
Rating 4.5 of 98 users Rating 4.5 of 98 users (98)


Rating 4.3 of 39 users Rating 4.3 of 39 users (39)
Rating 4.5 of 353 users Rating 4.5 of 353 users (353)
Rating 4.3 of 10 users Rating 4.3 of 10 users (10)