add sample rest api