Testing the API posting endpoint directly