This is how to build an API