rest implementation

implemented the vendorResource class -tested