Rest server structure