View function for category call in API done.
Strange bugs in old code have been fixed (in views.getRestaurants).
Mimetype changed to content_type because of derpecation warning.