Exemplo n.º 1
0
 def get(self, icon_hash):
     apiResponse = ApiResponse()
     icon = icons.getImageData(icon_hash)
     if (icon):
         icon.update({"request": icon_hash})
         apiResponse.setAll(False, "Image found", icon)
     else:
         apiResponse.setAll(True, "Image not found", {"request": icon_hash})
     return apiResponse.getResponse()
Exemplo n.º 2
0
 def get(self):
     apiResponse = ApiResponse()
     apiResponse.setAll(False, "Everything's up and running", {})
     return apiResponse.getResponse()
Exemplo n.º 3
0
 def get(self):
     apiResponse = ApiResponse()
     apiResponse.setAll(False, "Everything's up and running",
                        {"nb_images": len(icons.getImagesData())})
     return apiResponse.getResponse()