A boilerplate for creating a API for WordPress