Refactored API code.
Events REST API.
core.type#type order.