A pipeline framework for REST API