コード例 #1
0
 def tag_get(self, request):
     """
         API Endpoint to get a specific global tag.
     """
     index = Index(name='tags')
     tag = index.get(
         str(request.id), document_class=AutoCompleteTagDocument)
     if not tag:
         raise NotFoundException(
             "Tag with id: {0} not found".format(
                 request.id))
     return self.tag_document_mapper.map(tag)