Esempio n. 1
0
 def get(self, *args, **kwargs):
     service = CalipsoAvailableImagesServices()
     public_name = self.kwargs.get('public_name')
     image = service.get_available_image(public_name=public_name)
     serializer_class = CalipsoImageSerializer(image)
     return Response(serializer_class.data)
    def get_queryset(self):
        service = CalipsoAvailableImagesServices()
        public_name = self.kwargs.get('public_name')

        return service.get_available_image(public_name=public_name)