Improved restful api
Better api support