Api Endpoints ( correct way )

Refer to the message in pull request #23 for what should be here. I messed up and put this repository as the base instead of yours.