Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / api / util.py @ 0d069390

History | View | Annotate | Download (7.6 kB)

# Date Author Comment
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...

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

astakos: Describe and implement API for projects

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.

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)

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.

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

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

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

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

astakos: Validate input of quota-related API calls

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

API calls for quotas and commissions