Get site
Get a single site in a server
GET api/servers/{server}/sites/{id}
Example request:
curl -X GET "https://ploi.io/api/servers/{server}/sites/{id}" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Example response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"data": {
"id": 1,
"server_id": 1,
"status": "active",
"domain": "domain1.com",
"deploy_script": false,
"web_directory": "/public",
"project_type": null,
"project_root": "/",
"last_deploy_at": null,
"system_user": null,
"php_version": 7.2,
"health_url": null,
"has_repository": true,
"created_at": "2019-07-29 10:27:32"
}
}