add jersey rest API
basic api usage