Commit Graph

4 Commits

Author SHA1 Message Date
Ruslan Aliev 4dc1077a6e Use UUID as backup_id parameter
Current backup_id field may contain unsupported
characters for HTTP requests. It causes problems with
/v1/backups/{backup_id} requests. Proposed solution:
use UUID as backup_id instead of
'container_hostname_backupname_timestamp_level' pattern
for define backup_id.

Change-Id: I38e2ed52ab375ea0705cdb88f82e5e66cef5cd39
Closes-Bug: #1645110
Closes-Bug: #1618030
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2016-11-28 15:10:03 +03:00
Tim Buckley 57cbc5ac06 Return an error for negative limits and offsets
This changes the behavior of all of the collection-based API endpoints
so that they return a bad request error (HTTP 400) for limits less
than or equal to zero and offsets less than zero. The API
speicification has also been updated to reflect the new rules.

Additionally, this adds new integration tests to verify the added
functionality. To support these, the API client 'get_' functions
were amended to accept '**params' for all endpoints (not only
'get_backups').

Closes-Bug: 1592046
Change-Id: I9968b093c22c48082635c4c97f94bc66dcdfcb10
2016-07-18 09:50:47 -06:00
Fabrizio Vanni 4423f1c8f1 freezer service API v1 specification reformatted
New documentation in rst format and with proper file name
It includes the following routes:

  /v1/backups
  /v1/clients
  /v1/jobs

Change-Id: I29c33aabba942c0d9fa700dc7972bce3b2daea99
2015-06-23 16:14:25 +01:00
Fabrizio Vanni acbc7aefae Freezer API
First implementation of the freezer API.
Slightly more than a skeleton with basic functionality

Change-Id: Iae04affea3aa0f4a943599b528df49d9d4a5b845
Implements: blueprint freezer-api-first-rel
2015-04-08 18:25:45 +01:00