fuel-web/nailgun/nailgun/test
Dmitry Sutyagin 03aaca2dee Add limit, offset, order in collection GET
Allow limiting the number of objects returned via GET
by providing "limit"
Example: api/notifications?limit=5

Allow offseting (skipping N first records) via "offset"
Example: api/notifications?offset=100

Allow ordering of objects by providing "order_by"
Example: api/notifications?order_by=-id

Add helper functions/classes to:
- get HTTP parameters (limit, offset, order_by)
- get scoped collection query by applying 4 operations
  filter, order, offset, limit
- set Conent-Range header if scope limits are present

Make default NailgunCollection's GET utilize scoped query
This makes default (parent) GET of child handlers support paging
and ordering (overriden GET methods will not get this functionality
automatically)
NailgunCollection.GET is also an example of how to implement
this new functionality.

Helper functions/classes can be utilized in child handler methods
to implement filters / ordering / paging

Related-Bug: 1657348
Change-Id: I7760465f70b3f69791e7a0c558a26e8ba55c934a
2017-02-14 08:11:23 +00:00
..
integration Limit the minimal RAM amount for OVS+DPDK to 1024MB 2017-02-07 16:42:01 +00:00
performance validate pending_roles for Node 2016-04-22 17:36:57 +03:00
unit Add limit, offset, order in collection GET 2017-02-14 08:11:23 +00:00
__init__.py Files with no code must be left completely empty 2016-09-30 16:13:45 +07:00
base.py Set nodes' statuses to 'error' when their nodegroup is deleted 2017-02-07 17:44:06 +00:00
utils.py Add extensions API handler for cluster 2016-08-23 18:49:46 +03:00