Categories api

Avoid inline comments.