build the frame of WebAPI