Create the resource specified by the given model class and initialized with the data
dict and return an appropriate JSON response. 'get_function' is the name of the function
for the endpoint that the user will be be provided in the location header.
Does not perform data validation.
dict and return an appropriate JSON response.
:param session: The sqlalchemy session
:param model_cls: The class of the model for this resource
:param data: The initial data for this resource stored as a dictionary
: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.