From a3a0068929136d3bf6e25338889fd3090938eac6 Mon Sep 17 00:00:00 2001 From: zhangbailin Date: Wed, 3 Oct 2018 23:03:58 -0400 Subject: Add restrictions on updated_at when getting migrations If ``changes-before`` is less than ``changes-since`` in requested, there will get empty data when querying in db, so add the limit of these parameters. If ``changes-before`` < ``changes-since``, will be returned 400. Closes-Bug: #1796008 Change-Id: I2a39ac5a9fe969d383099b4e766c46ad05d9f67c --- api-ref/source/parameters.yaml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'api-ref') diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 226cc742a7..4e084bafa8 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -485,6 +485,9 @@ changes_before_migration: The ``±hh:mm`` value, if included, returns the time zone as an offset from UTC. For example, ``2015-08-27T09:49:58-05:00``. If you omit the time zone, the UTC time zone is assumed. + When both ``changes-since`` and ``changes-before`` are specified, + the value of the ``changes-before`` must be later than or equal to + the value of the ``changes-since`` otherwise API will return 400. in: query required: false type: string @@ -538,6 +541,9 @@ changes_since_migration: The ``±hh:mm`` value, if included, returns the time zone as an offset from UTC. For example, ``2015-08-27T09:49:58-05:00``. If you omit the time zone, the UTC time zone is assumed. + When both ``changes-since`` and ``changes-before`` are specified, + the value of the ``changes-since`` must be earlier than or equal to + the value of the ``changes-before`` otherwise API will return 400. in: query required: false type: string -- cgit v1.2.1