use flask-restless

use restless for api stuff