standardise api format