« Previous | Next » 

Revision 72bf812d

ID72bf812df963e0191cc0a03648c390e9f82fe458

Added by Christos Stavrakakis about 11 years ago

Implement single decorator for handling API calls

Create a single decorator for API methods to be used be accross all
synnefo. This decorator does the following:

  • Proper logging of 5xx faults and unexpected errors
  • Authentication with Astakos using snf-astakos-client
  • Sets proper HTTP response and cache control headers

Also move some common functions from various apps to
'snf_django.lib.api.utils'

Refs #3358 #3448

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences