a php rest api demo