Add new API endpoints

Thanks. It helped.

Just in case someone else needs help in this particular topic, give this article a read - How to create a Discourse plugin – kleinfreund.de