main module

main.get_json_data()[source]

This function is called when a GET request is made to the /json URL. It reads the JSON data from the request and write it to the file.

Returns:

The data processed by certain function.

main.page_not_found(error)[source]

This function is called when a 404 error occurs.

Parameters:

error – The error message.

Returns:

The error message.

main.process_data(data)[source]

This function processes the data and returns the result.

Parameters:

data – The json data to be processed by function.

Returns:

The processed data.

main.unsupported_media_type(error)[source]

This function is called when a 415 error occurs.

Parameters:

error – The error message.

Returns:

The error message.