Added REST API with Json support