Update rest.py

Added the option to specify the route of the API-url, which can be useful in case you want to use the same model multiple times. Use as follows:
api.register(Model, provider=RestResource, route=model1)