Skip to content

Response of backups#create is not properly unpacked #44

@aurelien-reeves-scalingo

Description

https://github.com/Scalingo/scalingo-ruby-api/blob/v3.2.0/lib/scalingo/regional_database/backups.rb#L15

The API response looks like:

{
  "database_backup": {
    "id": "5b8b36104ffb090be1ac3ce1",
    "created_at": "2019-07-18T03:00:00.178+02:00",
    "name": "20180902010000_kibana-3938",
    "size": 0,
    "status": "scheduled",
    "database_id": "597601234ffb097af4f3099b",
    "type": "postgresql"
  }
}

To be consistent with other endpoints of the lib, RegionalDatabase::Backups#create should fill data with the content of database_backup. In other word, it should unpack(:database_backup).

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions