Statistics
| Branch: | Tag: | Revision:

root / snf-django-lib / snf_django / lib / api / __init__.py @ bda47e03

History | View | Annotate | Download (11.5 kB)

# Date Author Comment
bda47e03 11/21/2013 01:28 pm Christos Stavrakakis

cyclades: Export Cyclades detailed stats from API

Add '/admin/stats/detail' API endpoint to export basic statistics about
Cyclades. Access to this view is only allowed to the users that belong
to specific Astakos groups, as specified in the new setting
'ADMIN_STATS_PERMITTED_GROUPS.' Also, added the new 'user_in_groups' API...

b4b82ec4 10/29/2013 04:15 pm Giorgos Korfiatis

astakos: Remove call GET /authenticate

Use POST /tokens to authenticate. Delete AstakosClient.get_user_info()
and replace its uses by AstakosClient.authenticate().

ef57e622 10/29/2013 03:37 pm Ilias Tsitsimpis

django-lib: Use the new AstakosClient

6b256427 10/01/2013 06:56 pm Christos Stavrakakis

Request Django=>1.4, <1.5

Drop support for Django 1.2. Remove compatibility code that were used in
order to support Django 1.2 and 1.4. Finally update django documentation
link in the docs.

0a70d2c5 10/01/2013 06:16 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.8' into develop

Merge hotfix-0.14.8 which ports Synnefo to wheezy and Django 1.4.5

Conflicts:
ci/ci_squeeze.conf
ci/ci_wheezy.conf
ci/schemas/one_node_squeeze/packages.conf
ci/schemas/one_node_squeeze/squeeze.conf
ci/schemas/one_node_squeeze/wheezy.conf...

34bd6588 09/25/2013 12:39 am Christos Stavrakakis

wheezy: HttpResponse has no _is_string attribute

ed2064f8 09/18/2013 05:17 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.6' into develop

Conflicts:
Changelog
docs/admin-guide.rst
snf-cyclades-app/synnefo/api/management/commands/network-remove.py
snf-cyclades-app/synnefo/api/servers.py
snf-cyclades-app/synnefo/api/tests/servers.py
snf-cyclades-app/synnefo/logic/backend.py...

981d3b0d 09/16/2013 05:39 pm Sofia Papagiannaki

pithos: Fix partial content responses

Refs: #4063

d546637f 08/05/2013 04:06 pm Christos Stavrakakis

snf-django: PEP8 fixes

5e903a58 06/28/2013 09:15 pm Christos Stavrakakis

snf-django: Add retry option to AstakosClient

API method decorator should initialize the AstakosClient with the retry
argument set, in order to avoid errors caused by getting an old
connection from pool.

abe6915b 06/28/2013 09:12 pm Christos Stavrakakis

Merge branch 'release-0.14' into develop

Conflicts:
snf-astakos-app/astakos/im/views/target/redirect.py
snf-cyclades-app/synnefo/logic/backend.py
version

584bdc72 06/26/2013 01:28 pm Sofia Papagiannaki

pithos: compatibility code for django greater than 1.2

Change condition for being compatible with django 1.2 or greater

4d244f4a 06/25/2013 08:20 pm Sofia Papagiannaki

pithos: Fix partial content responses

Refs: #4063

f089ffca 06/25/2013 03:24 pm Christos Stavrakakis

snf-django: Add retry option to AstakosClient

API method decorator should initialize the AstakosClient with the retry
argument set, in order to avoid errors caused by getting an old
connection from pool.

f9662798 06/19/2013 04:09 pm Kostas Papadimitriou

django-lib: Use requested default serialization

d0d9a3f5 06/18/2013 06:42 pm Kostas Papadimitriou

django-lib: api_method decorator improvements

allow API views to define supported serializations.

fced411d 06/13/2013 01:43 pm Kostas Papadimitriou

djangolib: Common JSONP helper method

269ac8de 06/12/2013 02:28 pm Christos Stavrakakis

Ensure we return cloud faults under any API prefix

6b560707 06/10/2013 11:06 am Sofia Papagiannaki

snf_django: Optionally use other default serialization than json

Pithos api default serialization for listing is text insted of json.
However the common api decorator if not specified otherwise used to
json as the default serialization.
So we introduced a new optional argument (defaults to json) to override...

81e19e70 06/07/2013 12:49 am Kostas Papadimitriou

django-lib: Exempt api_method views from csrf

e3ff6830 06/03/2013 11:49 am Georgios D. Tsoukalas

make synnefo URLs consistent and configurable

https://service.deployment.vendor.tld/service-base/api-prefix/hard/path |___________________________________| |__________| |________| |_______|
BASE_HOST BASE_PATH PREFIX Hardcoded...

499d9bfe 05/31/2013 01:13 pm Christos Stavrakakis

cyclades: Raise 500 for commission errors

Wrap all calls to astakosclient for commissions to raise 500, if any
error other than QuotaLimit(413) occurs.

c50825bf 05/28/2013 07:56 pm Sofia Papagiannaki

snf-django-lib: Fix minor spelling issue in get_serialization

222305b7 05/20/2013 12:44 pm Sofia Papagiannaki

astakos: replace CookieAuthenticationMiddleware with a view decorator

reverse commits ab30f5f163a13dfc7f9bec4d263208dd35f09d16 &
1439d6383113b151b6a3316e320a0418fa30d421

decorate also ``django.contrib.auth.views`` utilized by
astakos

1439d638 05/16/2013 08:27 pm Sofia Papagiannaki

astakos: api calls authenticated via X-Auth-Token shall not affect cookie

CookieAuthenticationMiddleware.process_request() synchronizes
the astakos cookie with the request user.
If an astakos cookie is set but there is no logged in user,
the middleware deletes the cookie....

255cef57 04/30/2013 05:03 pm Christos Stavrakakis

Improve log message

Distinguish exceptions while using AstakosClient to communicate with
Astakos, from the rest API errors.

726cb37f 04/30/2013 05:03 pm Ilias Tsitsimpis

Handle AstakosClientException in api_method decorator

b698d39d 04/16/2013 08:22 pm Christos Stavrakakis

Fix API decorator response Content-Type

Remove check for response Content-Type, since 'django.http.HttpResponse'
has always a default Content-Type of 'text/html; charset=utf-8'. Views
defining their response 'Content-Type' should set the
'override_serialization' attribute of response to 'True'.

47ef53d5 04/15/2013 05:17 pm Christos Stavrakakis

Make 'api_method' to take astakos_url as argument

93c6900c 04/10/2013 12:18 pm Ilias Tsitsimpis

snf-django-lib: PEP-8 style fixes

6c1c0738 04/10/2013 12:05 pm Ilias Tsitsimpis

snf-django-lib: ReRaise AstakosClientExceptions as API Faults

72bf812d 04/08/2013 11:06 am Christos Stavrakakis

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...