You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 2, 2021. It is now read-only.
@@ -446,100 +460,66 @@ Read more about [users](#users) and [roles](#roles).
446
460
447
461
## Deprecated Endpoints
448
462
463
+
Some endpoints on V2 API do not have direct analogs on the V3 API. This section will cover how to replace these endpoints when migrating to the V3 API.
464
+
449
465
### Restage
450
466
451
-
Due to changes to the app resource, the `/v2/apps/:guid/restage` endpoint no longer exists.
452
-
The introduction of the [package, droplet, and build resources](#app-sub-resources) allows finer grain
453
-
control over the lifecycle of an app. The increased flexibility enabled by these
454
-
changes renders a restage endpoint ambiguous. The V3 API avoids making assumptions about which package/droplet to use when running an app and thus leaves it up to clients.
467
+
The specialized `/v2/apps/:guid/restage` endpoint is replaced by the [builds](#builds) resource. Builds allow finer-grained
468
+
control and increased flexibility when staging packages into droplets. The V3 API avoids making assumptions about which
469
+
package/droplet to use when staging or running an app and thus leaves it up to clients.
455
470
456
-
#### Restage features introduced by new resource model
471
+
#### Replicating Restage
457
472
458
-
The changes made to the app resource increase the flexibility and granularity of control available
459
-
to clients in crafting a restage workflow. Examples of new capabilities include:
473
+
1. Get newest READY package for an app:
460
474
461
-
- Staging packages to produce droplets without setting them as the current
462
-
droplet for an app
463
-
- Changing the current droplet for an app more easily (e.g. rolling back to a
464
-
previous droplet)
465
-
- Using the deployment resource when changing the droplet for a running app to minimize downtime
475
+
`
476
+
GET /v3/packages?app_guids=:app-guid&order_by=-created_at&states=READY
477
+
`
466
478
467
-
#### Replicating behavior of the deprecated endpoint
0 commit comments