WebAPI main functions setup