API formats, json, xml and update on Ouath2