Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / api @ c8a38c0e

# Date Author Comment
c8a38c0e 11/21/2013 02:10 pm Christos Stavrakakis

cyclades: Export Astakos detailed stats from API

Add new 'astakos_admin' service to export basic statistics about Astakos
service. The stats are exported via the '/admin/stats/detail' API endpoint.
Access to this view is only allowed to the users that belong to specific...

67ef560b 11/14/2013 02:05 pm Giorgos Korfiatis

astakos: Speed up POST /tokens

Prefetch endpoint entries to avoid multiple queries.

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

81e604c5 10/29/2013 03:37 pm Ilias Tsitsimpis

astakos: Move astakos_services from astakosclient

Move astakos_services from astakosclient to astakos.api.services.

a3e3917f 10/09/2013 04:52 pm Giorgos Korfiatis

astakos: Remove custom commit_on_success decorator

Prior to 1.3, django wouldn't set the transaction dirty upon a DB
exception and thus wouldn't trigger a rollback, resulting in a dangling
aborted DB exception. See https://code.djangoproject.com/ticket/9964...

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.

b694875c 10/01/2013 06:56 pm Christos Stavrakakis

wheezy: Rename depricated HttpRequest attribute

From django docs:
"""
HttpRequest.raw_post_data renamed to HttpRequest.body

This attribute was confusingly named HttpRequest.raw_post_data, but it
actually provided the body of the HTTP request. It’s been renamed to...

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

8299ef23 09/27/2013 04:50 pm Christos Stavrakakis

Revert "wheezy: Rename depricated HttpRequest attribute"

This reverts commit cfc4b87c301504627e6a75ab2e4d32c8cd7a6e15. This
commit is reverted because it breaks compatibility with Django 1.2. This
should be applied for Synnefo 0.15.

cfc4b87c 09/27/2013 03:22 pm Christos Stavrakakis

wheezy: Rename depricated HttpRequest attribute

From django docs:
"""
HttpRequest.raw_post_data renamed to HttpRequest.body

This attribute was confusingly named HttpRequest.raw_post_data, but it
actually provided the body of the HTTP request. It’s been renamed to...

a6b17d33 09/24/2013 05:16 pm Christos Stavrakakis

wheezy: urls module doesn't export defaults

e98239db 08/28/2013 04:36 pm Giorgos Korfiatis

astakos: Force a members limit in project applications

a23ac2f7 08/28/2013 03:22 pm Giorgos Korfiatis

astakos: Restrict project naming in API call

Use the same regex as in the UI, which matches domain-name-like strings.

2556cf45 08/07/2013 12:01 pm Giorgos Korfiatis

astakos: Describe and implement API for projects

51db2da2 08/07/2013 12:01 pm Giorgos Korfiatis

astakos: Fix some issues pointed out by pyflakes

bbf20a4c 08/02/2013 08:02 pm Sofia Papagiannaki

astakos: Catch unexpected request body in user_catalogs

The request expects a json formatted dictionary.
Raise 400 (BadRequest) otherwise.

d4e4e501 07/25/2013 12:46 pm Christos Stavrakakis

Merge branch 'hotfix-0.14.3' into develop

Conflicts:
Changelog
snf-astakos-app/astakos/im/messages.py
snf-pithos-app/pithos/api/manage_accounts/__init__.py
snf-pithos-app/pithos/api/management/commands/reconcile-resources-pithos.py
snf-pithos-app/pithos/api/settings.py...

8ff1e8d9 07/18/2013 05:57 pm Giorgos Korfiatis

astakos: Use api_method_not_allowed in quota API

4ef6b22c 07/12/2013 11:43 am Christos Stavrakakis

astakos: Add region value in POST /tokens

Add hardcoded 'default' value in region attribute.

Refs #4086

a50f99a3 07/02/2013 11:37 am Sofia Papagiannaki

astakos: Change default region value in POST /tokens

Refs: 4086

40df79ac 07/01/2013 07:18 pm Christos Stavrakakis

astakos: Rename Region to region

Refs #4086

563b0658 07/01/2013 06:36 pm Sofia Papagiannaki

astakos: Return default region in POST /tokens

Update api call to return a default region for compatibility
with the keystone api.

8fb8d0cf 06/17/2013 04:22 pm Giorgos Korfiatis

astakos: pep8 fixes

a01eb018 06/12/2013 04:06 pm Sofia Papagiannaki

astakos: allow empty tenantName in POST /tokens

11366070 06/12/2013 02:33 pm Sofia Papagiannaki

astakos: slight change in POST /tokens

tenantName is options in the request input.
Howver, if it is provided, the call should check whether
it conforms with the token holder.

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

Ensure we return cloud faults under any API prefix

7f8af0e9 06/11/2013 05:56 pm Sofia Papagiannaki

astakos: slight change in POST /tokens

Return the web login url also in the custom ``SNF:webloginURL``
attribute

07860de2 06/11/2013 02:25 pm Sofia Papagiannaki

pithos: change POST /tokens

move SNF:uiURL under each endpoint

336fb8fb 06/11/2013 01:56 pm Sofia Papagiannaki

astakos: fix POST /tokens in case of missing content length

Catch this case and reply with the non authentication protected
information (public mode)

d29f0371 06/10/2013 09:37 pm Sofia Papagiannaki

astakos: change authenticate keystone api call

If no request body is provided (no request content length),
the response returns only non authentication protected information
(before it used to return BadRequest)

b31a08eb 06/05/2013 01:09 pm Kostas Papadimitriou

astakos: Set tokens api endpoint name in urls

in order to be able to use django reverse mechanism to resolve the endpoint
path.

3d71bb5b 06/05/2013 10:33 am Giorgos Korfiatis

astakos: Prepend version to service/user_catalogs URL

412e8042 06/04/2013 08:31 pm Kostas Papadimitriou

astakos: Move all api urls under v1.0

feedback/user_catalogs/autenticate endpoints moved under /v1.0/ prefix

ee9bd998 06/04/2013 07:14 pm Georgios D. Tsoukalas

astakos: correct keystone version v2.0

8c84ac66 06/04/2013 05:32 pm Georgios D. Tsoukalas

astakos: add version v1.0 in account API URLs

a24b5bda 06/03/2013 05:30 pm Sofia Papagiannaki

astakos: remove get_endpoints keystone api call

8cb96389 06/03/2013 03:47 pm Sofia Papagiannaki

astakos: modifications in authenticate keystone api call

  • change the call to utilize the updated db models
  • update tests
  • update docs
f262b37e 06/03/2013 12:19 pm Georgios D. Tsoukalas

Merge remote branch 'origin/feature-services-endpoints' into feature-reconfigure-urls

6e416d7b 06/03/2013 12:17 pm Georgios D. Tsoukalas

astakos: put keystone API in a separate prefix

bea584e1 06/03/2013 12:00 pm Giorgos Korfiatis

astakos: Lift old-style services to components

Add model Component and migrate services along with their token
and UI URL to this new model. Rename service to component where
needed.

Add field service_type in Resource and fill it based on the name
of the service that used to own the resource.

bd1f667b 06/03/2013 12:00 pm Giorgos Korfiatis

astakos: Import new-style services and resources

bd93595d 05/29/2013 03:19 pm Sofia Papagiannaki

astakos: modifications in POST /tokens (authenticate) api call

  • tenantName is optional in the request
  • check whether the token holder is active and the token has not been
    expired
  • update and fix the tests
  • update the docs
49005665 05/28/2013 07:56 pm Sofia Papagiannaki

astakos: provide authenticate keystone token api call

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

snf-django-lib: Fix proxy issue

The ``X-Forwarded-Host`` header should not be forwared to the target
because django appends its value to the Host header and
results in validate_host() failure.

bd20edc6 05/28/2013 06:21 pm Giorgos Korfiatis

astakos: Handle datetime in API json response

Automatically convert a datetime to string using isoformat from
snf_django.lib.api.utils

7ac2131c 05/23/2013 04:30 pm Sofia Papagiannaki

astakos: provide get_endpoints api call

58350a50 05/23/2013 04:30 pm Sofia Papagiannaki

astakos: move get_services back to astakos im services

67920ea0 05/23/2013 02:07 pm Giorgos Korfiatis

astakos: Strengthen authentication in user_from_token

All user-related API calls make use of this decorator to authenticate
the user. Previously it used to check only for the existence of the token;
now it makes all checks previously found in the `authenticate' API call....

0be81d73 05/21/2013 07:41 pm Sofia Papagiannaki

astakos: move get_menu service under astakos im services

get_menu is used only by astakos cloudbar:
it should not be under astakos api services

8998f09a 05/21/2013 06:28 pm Sofia Papagiannaki

astakos: unified settings handling

Import astakos settings module instead of importing specific settings

2e7924de 05/20/2013 03:14 pm Giorgos Korfiatis

astakos: Remove some unused imports

Also add a missing import in quotas.py

315fe235 05/16/2013 06:30 pm Christos Stavrakakis

astakos: check that request.user is a 'User'

Update astakos 'get_menu' API method, to check if request.user is an
instance of django User model. This view function called by astakos
context processor. However, if astakos and helpdesk are installed
together, the request.user will not hold an AnonymousUser, but a...

6609821f 05/15/2013 06:13 pm Sofia Papagiannaki

astakos: change authenticate api call

``/astakos/api/authenticate`` call
does not include any more resource usage in the reply.
(``usage`` request parameter has become obsolete)
The services in order to get the resource usage should call
``/astakos/api/quotas`` instead.

e1feace1 05/14/2013 11:19 am Giorgos Korfiatis

astakos: Fix call to util function send_feedback

47a8481f 05/10/2013 01:21 pm Sofia Papagiannaki

astakos: include resource presentation info in authenticate response

If option parameter ``usage`` is passed then the response should
contain also the resource presentation information
(as it used to be in the past)

b095201e 05/10/2013 12:45 pm Sofia Papagiannaki

astakos: remove astakos.im.api module

Replace all AstakosCallpoint references

78c3a39c 05/10/2013 12:45 pm Sofia Papagiannaki

astakos: remove user argument from the api methods

User request.user field (set by user_for_token decorator)

79b5d61b 05/10/2013 12:45 pm Sofia Papagiannaki

astakos: WIP move all api calls under ``/astakos/api``

Refs: #3340

276f454e 05/10/2013 12:45 pm Sofia Papagiannaki

astakos: Change user_for_token decorator

user_for_token after successful user authentication
sets the request user attribute
The wrapped methods no more need the ``user`` argument:
they can get the token holder by the request object

7f313da1 05/10/2013 12:45 pm Sofia Papagiannaki

astakos: rename api utility methods

6f1d4d03 05/10/2013 12:45 pm Sofia Papagiannaki

astakos: fix user api utility calls

2931c601 05/02/2013 04:36 pm Kostas Papadimitriou

astakos: Proper string type check

using basestring also handles unicode objects

ec5e00aa 04/29/2013 12:13 pm Giorgos Korfiatis

Revert quotaholder's name to quotaholder_app

In order to facilitate migrations.

3a1bed03 04/25/2013 05:49 pm Giorgos Korfiatis

astakos: Set and return commission names in API calls

Support issue_commission's `name' parameter for an optional description
of the commission. Include this field in the dict returned by
get_commission.

Change astakosclient accordingly.

3f7b6f6f 04/25/2013 12:43 pm Giorgos Korfiatis

astakos: Correct qh call to auto accept commissions

4df49ee7 04/24/2013 01:15 pm Giorgos Korfiatis

astakos: Further validate input in quota API calls

ad730cc5 04/23/2013 04:12 pm Giorgos Korfiatis

astakos: Validate input of quota-related API calls

271d2c4c 04/23/2013 03:40 pm Giorgos Korfiatis

astakos: Rename get_service_quotas to service_get_quotas

So that it follows the naming scheme of other astakosclient calls.

bbf79074 04/23/2013 11:48 am Giorgos Korfiatis

quotaholder: Change provisions argument to list

It is the API code's task to transform the input dict to list.

948e15bc 04/22/2013 06:47 pm Giorgos Korfiatis

Turn callpoint into a module of functions

Class structure is no more needed; there is no need for initialization,
since the code is used internally.

08043775 04/22/2013 04:14 pm Giorgos Korfiatis

astakos: Move get_resources in resources.py

4e03ba30 04/19/2013 05:37 pm Kostas Papadimitriou

Update astakos usage view

Update view to use the introduced astakos quotas api.

5afce44d 04/19/2013 01:28 pm Giorgos Korfiatis

astakos: Add user parameter in service_quotas API call

Using this parameter, the service can query the quotas of a specific
user.

b830f774 04/19/2013 12:29 pm Giorgos Korfiatis

Move transaction.py to snf_django package

bb005bc2 04/18/2013 12:20 pm Giorgos Korfiatis

New call astakos/api/service_quotas

Returns quotas for all resources associated with the service that makes
the call.

6c0f4562 04/12/2013 06:18 pm Giorgos Korfiatis

quotaholder: Unify accept and reject commission code

Incorporate accept/reject functions in resolve_pending_commissions,
in order to enforce a total ordering on locking holdings.
Add a wrapper (resolve_pending_commission) that operates on a single
serial.

befa5997 04/11/2013 02:07 pm Giorgos Korfiatis

Merge branch 'develop' into feature-quotas

Conflicts:
snf-astakos-app/astakos/im/api/service.py
snf-quotaholder-app/quotaholder_django/quotaholder_app/callpoint.py

a4398c8c 04/08/2013 02:14 pm Giorgos Korfiatis

Remove client_key parameter from quotas API

It is not necessary, since the service token in used for authorization.
The api_method decorator is modified so that it passes to the method
the service data through the request object.

1028e568 04/08/2013 01:43 pm Giorgos Korfiatis

API call for resources

18f21257 04/08/2013 01:41 pm Giorgos Korfiatis

API calls for quotas and commissions