The Handler.require_json decorator checks if a required_json_keys class attribute exists, and if it does, it verifies that the incoming JSON data has those keys, or it replies automatically to the request with a message saying what keys are missing.
I want something like that to inspect the query string and verify that all the required parameters exist.
The Handler.require_json decorator checks if a required_json_keys class attribute exists, and if it does, it verifies that the incoming JSON data has those keys, or it replies automatically to the request with a message saying what keys are missing.
I want something like that to inspect the query string and verify that all the required parameters exist.