a basic api skeleton