Gets latest config that Serve has received. This config represents the current goal state for the Serve application. Starts a Serve application on the Ray cluster if it's not already running. See the [config schema](serve-rest-api-config-schema) for the response's JSON schema.
Declaratively deploys the Serve application. Starts Serve on the Ray cluster if it's not already running. See the [config schema](serve-rest-api-config-schema) for the request's JSON schema.
Gets the Serve application's current status, including all the deployment statuses. This config represents the current goal state for the Serve application. Starts a Serve application on the Ray cluster if it's not already running. See the [status schema](serve-rest-api-status-schema) for the response's JSON schema.
**Example Request**:
```
GET /api/serve/deployments/ HTTP 1.1
Host: http://localhost:8265/
Accept: application/json
```
**Example Response**
```http
HTTP/1.1 200 OK
Content-Type: application/json
{
"app_status": {
"status": "RUNNING",
"message": "",
"deployment_timestamp": 1855994527.146304
},
"deployment_statuses": [
{
"name": "MangoStand",
"status": "HEALTHY",
"message": ""
},
{
"name": "OrangeStand",
"status": "HEALTHY",
"message": ""
},
{
"name": "PearStand",
"status": "HEALTHY",
"message": ""
},
{
"name": "FruitMarket",
"status": "HEALTHY",
"message": ""
},
{
"name": "DAGDriver",
"status": "HEALTHY",
"message": ""
}
]
}
```
#### `DELETE "/api/serve/deployments/"`
Shuts down the Serve application running on the Ray cluster. Has no
effect if Serve is not running on the Ray cluster.