Creating APIs with Wordpress