Very basic framework for API