Implement api endpoint to get orders

First pass at this endpoint