Ploi API
Ploi API

Get repository

Get a repository in your site

GET api/servers/{server}/sites/{site}/repository

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/sites/{site}/repository" \
-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,
        "domain": "deployment.com",
        "web_directory": "/public",
        "wordpress": false,
        "laravel": false,
        "project_root": "/",
        "last_deploy_at": "2022-11-08 14:07:14",
        "created_at": "2022-11-08 13:45:21",
        "repository": {
            "branch": "main",
            "user": "ploi-deploy",
            "name": "roadmap",
            "provider": "github"
        }
    }
}