fuel-web/nailgun/nailgun/api/v1/handlers
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
..
__init__.py Initial JSONSchema validation 2014-12-15 13:09:38 +03:00
assignment.py Explicitly remove pending_addition flag on discovered node deletion 2016-12-16 19:40:43 +03:00
base.py Add limit, offset, order in collection GET 2017-02-14 08:11:23 +00:00
capacity.py Split @content decorator 2016-08-22 12:20:18 +03:00
cluster.py Enable propagate_task_deploy in Web UI 2016-10-21 05:17:35 +00:00
cluster_plugin_link.py Split @content decorator 2016-08-22 12:20:18 +03:00
component.py Fix typos in cluster.py & component.py 2016-09-29 03:15:34 +00:00
deployment_graph.py Itroduced deployment sequences 2016-09-07 16:28:49 +03:00
deployment_history.py Add type of deployment task to its CSV output 2016-09-22 13:08:50 +03:00
deployment_sequence.py Filter sequences output by release or cluster 2016-09-08 15:02:48 +03:00
extension.py Align code for Extension Handler 2016-09-07 13:46:01 +03:00
logs.py Pass auth token to diagnostic snapshot dumper 2016-09-06 14:34:21 +03:00
master_node_settings.py Split @content decorator 2016-08-22 12:20:18 +03:00
node.py Message format on node(-s) deletion error changed 2017-01-26 20:41:56 +03:00
node_group.py Split @content decorator 2016-08-22 12:20:18 +03:00
notifications.py Handler for changing notifications statuses added 2017-02-07 16:39:05 +00:00
openstack_config.py Split @content decorator 2016-08-22 12:20:18 +03:00
orchestrator.py Merge "Implement subgraph (aka start/end) execution" 2016-09-23 08:23:20 +00:00
plugin.py Split @content decorator 2016-08-22 12:20:18 +03:00
plugin_link.py Split @content decorator 2016-08-22 12:20:18 +03:00
release.py Split @content decorator 2016-08-22 12:20:18 +03:00
removed.py Split @content decorator 2016-08-22 12:20:18 +03:00
role.py Add ability to create role for cluster 2016-11-13 15:34:53 +03:00
tag.py Add tag API 2016-11-22 19:12:22 +00:00
tasks.py Split @content decorator 2016-08-22 12:20:18 +03:00
transactions.py Split @content decorator 2016-08-22 12:20:18 +03:00
version.py Split @content decorator 2016-08-22 12:20:18 +03:00
vms.py Split @content decorator 2016-08-22 12:20:18 +03:00