Plugin API documentations?

Checkout this file. Most of the methods are documented briefly
https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/lib/plugin-api.js