Direct way to use the rest api.