sample codes for django restful api