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
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.
YOU MIGHT ALSO LIKE
PEOPLE WHO VIEWED THIS ALSO VIEWED THESE