def post(self): # curl -d name="Conjured Mana Cake" -d sell_in=3 -d quality=6 # http://127.0.0.1:5000/items -X POST args = self.parseRequest() # 201 response: request has succeeded and # a new resource has been created as a result. Service.postItem(args) return '', 201
def post(self): args = self.parseRequest() Service.postItem(args) return '', 201