add sample rest with get and put methods