API documentation and test cases