Add form api to resource server module