rest api skeleton