Python API Literacy

  • 22m 30s
  • 15 questions
The Python API Literacy benchmark will measure your ability to develop REST APIs. You will be evaluated on your ability to recognize and implement Flask-RESTful's built-in template library and Molten Framework. A learner who scores high on this benchmark demonstrates that they have the skills to work with the CURL command-line utility to make API calls using a Molten Schema instance.

Topics covered

  • access data in the request body of an API server
  • build a Molten app that takes in URL parameters
  • configure required parameters using the Flask-RESTful request parser
  • create custom fields in JSON responses
  • define a middleware layer which distinguishes between requests when checking for authorization
  • implement methods to respond to GET, POST, PUT, and DELETE HTTP requests using the Flask-RESTful library
  • load the settings defined in a JSON file in your file system into a Molten SettingsComponent instance
  • send data in a POST request using the request body
  • test create, read, update, and delete (CRUD) operations using Flask-RESTful
  • use a Molten Schema instance to validate the POST data submitted to your app
  • use Molten's HTTPSecurityScheme to enable the use of authorization from the Swagger UI
  • use the copy method to inherit from a predefined request parser via Flask-RESTful
  • use the envelope parameters to structure the JSON response to the user
  • use the Flask-RESTful library to bundle parsing errors
  • use the marshal() function, marshal_with, and data_class decorators to serialize an object to JSON format

recently added courses