Added sample end to end api call for both gets and creates