Refactored API documentation