base server preparing code, provide, example api method