Add initial api endpoints related to #1