a beginner's scala rest api