cloudkitty/cloudkitty/api
Aaron-DH 2ba69c4a0b Modify policy of get total/summary
Update policy of get_total/summary, admin user can
get rate info of all tenants and non-admin user can
get rate info of itself.

For example, get total api change as follows:
    cloudkitty total-get
        -- get total of current tenant(get tenant from context)
    cloudkitty total-get -t tenant_id
        -- get total of specified tenant if allowed(admin or owner)
    cloudkitty total-get --all-tenants
        -- get total of all tenants if allowed(admin)

Change-Id: I47dd5f310f18b7e5211165069692827047cdccd6
closes-bug:#1644399
2017-01-26 13:52:09 +01:00
..
v1 Modify policy of get total/summary 2017-01-26 13:52:09 +01:00
__init__.py Added API service 2014-08-08 15:51:22 +02:00
app.py Modify policy of get total/summary 2017-01-26 13:52:09 +01:00
config.py Sync oslo modules 2015-06-09 08:52:06 +02:00
hooks.py Modify policy of get total/summary 2017-01-26 13:52:09 +01:00
middleware.py Introduce hacking check to Cloudkitty 2016-12-16 22:23:28 +08:00
root.py RootController: Use an index method instead of get 2016-07-21 13:04:31 +02:00