Create the resource specified by the given model class and initialized with the data
Create the resource specified by the given model class and initialized with the data
dict, returning an appropriate JSON response.
dict, returning an appropriate JSON response.
:param model_cls: The class of the model for this resource
Parameters:
:param data: The initial data for this resource stored as a dictionary
schema (object): The class of the model for this resource
:param get_function: The name of the view function (as a string) that gets a single instance of this resource. This is used for the response Location header.
data (dict) : The initial data for this resource stored as a dictionary
:return: a Flask Response object
get_function (string): The name of the view function (as a string) that gets a single
instance of this resource. This is used for the response Location header.