Improved create/update API, fixed bug referring to request body (as data instead of body)
Added a check for a list of resources rather than a single resource.
Added model API