Molten Framework: Advanced Features
Molten 1.0
| Intermediate
- 11 videos | 1h 23m 25s
- Includes Assessment
- Earns a Badge
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.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseConnect to a sqlite database using the python sqlite3 library and define sql queries to run against that database from your molten appWire up your molten application so that the data passed in through post requests is written out to a sqlite databaseRead data from a database when a get request is submitted to your molten appAdd a middleware layer into your app to verify authorization information in http request headersDefine a middleware layer which distinguishes between requests when checking for authorization
-
Create an openapihandler instance which dynamically generates documentation for your molten applicationUse the openapiuihandler class to generate a swagger ui for your molten applicationUse molten's httpsecurityscheme to enable the use of authorization from the swagger uiBuild a molten application which returns an http response containing binary dataSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 39s
-
9m 30s
-
8m 58s
-
11m 33s
-
10m 45s
-
5m 57s
-
10m 25s
-
8m 7s
-
7m 26s
-
6m 4s
-
2m 2s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
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.