Get Application

Get a application in a server

GET api/servers/{server}/applications/{id}

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/applications/{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,
        "status": "active",
        "name": "ploi-app",
        "deploy_script": "cd /home/ploi/applications/ploi_app\ngit pull origin master\n\necho \"🚀 Application deployed!\"",
        "path": "/home/ploi/applications/ploi_app",
        "last_deploy_at": "2019-01-01 09:00:00",
        "created_at": "2019-01-01 09:00:00"
    }
}