def post(self, product: Product): response = requests.post(url=self.ECONOMIC_URL, data=product.to_json(), headers=self.headers) return response
def put(self, product: Product): self.ECONOMIC_URL += '/' + product.product_number response = requests.put(url=self.ECONOMIC_URL, data=product.to_json(), headers=self.headers) return response