options method in api testing