Sample Api Code