response end statement is added in REST API