Feature #3358

Single decorator for handling API calls, with proper logging of HTTP 500 errors

Added by Vangelis Koukis about 11 years ago. Updated about 10 years ago.

Status:Closed Start date:03/03/2013
Priority:High Due date:
Assignee:Christos Stavrakakis % Done:

0%

Category:deployment Spent time: -
Target version:0.14.0

Description

Create a single decorator, across Synnefo, for handling API calls,
with proper logging of HTTP 500 errors.


Related issues

related to Synnefo - Bug #3356: Make Plankton handle bad reqs correctly Assigned 03/01/2013
related to Synnefo - Feature #3448: Ensure proper cache control headers across Synnefo Closed 03/13/2013

Associated revisions

Revision 72bf812d
Added by Christos Stavrakakis almost 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

History

#1 Updated by Christos Stavrakakis almost 11 years ago

  • Status changed from Assigned to Feedback
  • Assignee changed from Kostas Papadimitriou to Christos Stavrakakis

#2 Updated by Christos Stavrakakis about 10 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF