The Basics of Platform API Design