Responses

  • 200

    OK

    Hide headers attributes Show headers attributes
    • Cross-Origin-Embedder-Policy string
    • Cross-Origin-Opener-Policy string
    • Cross-Origin-Resource-Policy string
    • Origin-Agent-Cluster string
    • Referrer-Policy string
    • Strict-Transport-Security string
    • X-Content-Type-Options string
    • X-DNS-Prefetch-Control string
    • X-Download-Options string
    • X-Frame-Options string
    • X-Permitted-Cross-Domain-Policies string
    • X-XSS-Protection integer
    • Access-Control-Allow-Origin string
    • Access-Control-Allow-Credentials boolean
    • Retry-After number
    • X-RateLimit-Limit integer
    • X-RateLimit-Remaining integer
    • X-RateLimit-Reset string
    • x-powered-by string
    • Content-Type string
    • Content-Length integer
    • ETag string
    • Date string
    • Connection string
    • Keep-Alive string
  • 404

    Not Found

    Hide headers attributes Show headers attributes
    • Cross-Origin-Embedder-Policy string
    • Cross-Origin-Opener-Policy string
    • Cross-Origin-Resource-Policy string
    • Origin-Agent-Cluster string
    • Referrer-Policy string
    • Strict-Transport-Security string
    • X-Content-Type-Options string
    • X-DNS-Prefetch-Control string
    • X-Download-Options string
    • X-Frame-Options string
    • X-Permitted-Cross-Domain-Policies string
    • X-XSS-Protection integer
    • Access-Control-Allow-Origin string
    • Access-Control-Allow-Credentials boolean
    • Retry-After number
    • X-RateLimit-Limit integer
    • X-RateLimit-Remaining integer
    • X-RateLimit-Reset string
    • x-powered-by string
    • Content-Type string
    • Content-Length integer
    • ETag string
    • Date string
    • Connection string
    • Keep-Alive string
GET /cpanel/subdomain
curl \
 -X GET http://localhost:3003/api/dev/cpanel/subdomain \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 200.847
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 87
X-RateLimit-Reset: Mon Oct 30 2023 03:06:04 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 2144
ETag: W/"860-lkerUjkWFPNdufmxeWmPG2kP7mE"
Date: Mon, 30 Oct 2023 02:02:45 GMT
Connection: keep-alive
Keep-Alive: timeout=5

# Payload
{
  "code": 200,
  "result": {
    "main_domain": {
      "main_domain": "croissant-rouge.org.tn",
      "ssl_redirect": true,
      "ip": "102.219.176.111",
      "homedir": "/home/obcwnhrk"
    },
    "sub_domains": [
      {
        "servername": "test.croissant-rouge.org.tn",
        "ssl_redirect": false,
        "dir_path": "/home/obcwnhrk/test",
        "serveralias": "www.test.croissant-rouge.org.tn",
        "type": "sub_domain"
      },
      {
        "servername": "swift-staging.croissant-rouge.org.tn",
        "ssl_redirect": true,
        "dir_path": "/home/obcwnhrk/swift-staging.croissant-rouge.org.tn",
        "serveralias": "www.swift-staging.croissant-rouge.org.tn",
        "type": "sub_domain"
      },
      {
        "servername": "swift-api.croissant-rouge.org.tn",
        "ssl_redirect": false,
        "dir_path": "/home/obcwnhrk/swift-api.croissant-rouge.org.tn",
        "serveralias": "www.swift-api.croissant-rouge.org.tn",
        "type": "sub_domain"
      },
      {
        "servername": "platform.croissant-rouge.org.tn",
        "ssl_redirect": true,
        "dir_path": "/home/obcwnhrk/platform.croissant-rouge.org.tn",
        "serveralias": "www.platform.croissant-rouge.org.tn",
        "type": "sub_domain"
      },
      {
        "servername": "gests30.croissant-rouge.org.tn",
        "ssl_redirect": true,
        "dir_path": "/home/obcwnhrk/gests30.croissant-rouge.org.tn",
        "serveralias": "www.gests30.croissant-rouge.org.tn",
        "type": "sub_domain"
      },
      {
        "servername": "api.croissant-rouge.org.tn",
        "ssl_redirect": true,
        "dir_path": "/home/obcwnhrk/api.croissant-rouge.org.tn",
        "serveralias": "www.api.croissant-rouge.org.tn",
        "type": "sub_domain"
      },
      {
        "servername": "intranet.croissant-rouge.org.tn",
        "ssl_redirect": true,
        "dir_path": "/home/obcwnhrk/intranet.croissant-rouge.org.tn",
        "serveralias": "www.intranet.croissant-rouge.org.tn",
        "type": "sub_domain"
      },
      {
        "servername": "swift.croissant-rouge.org.tn",
        "ssl_redirect": true,
        "dir_path": "/home/obcwnhrk/swift.croissant-rouge.org.tn",
        "serveralias": "www.swift.croissant-rouge.org.tn",
        "type": "sub_domain"
      },
      {
        "servername": "app.croissant-rouge.org.tn",
        "ssl_redirect": true,
        "dir_path": "/home/obcwnhrk/app.croissant-rouge.org.tn",
        "serveralias": "www.app.croissant-rouge.org.tn",
        "type": "sub_domain"
      },
      {
        "servername": "swift-api-staging.croissant-rouge.org.tn",
        "ssl_redirect": true,
        "dir_path": "/home/obcwnhrk/swift-api-staging.croissant-rouge.org.tn",
        "serveralias": "www.swift-api-staging.croissant-rouge.org.tn",
        "type": "sub_domain"
      }
    ]
  }
}
Response examples (200)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 200.847
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 87
X-RateLimit-Reset: Mon Oct 30 2023 03:06:04 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 2144
ETag: W/"860-lkerUjkWFPNdufmxeWmPG2kP7mE"
Date: Mon, 30 Oct 2023 02:02:45 GMT
Connection: keep-alive
Keep-Alive: timeout=5

# Payload
{}
Response examples (404)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 317.436
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 89
X-RateLimit-Reset: Mon Oct 30 2023 03:06:04 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 167
ETag: W/"a7-pG5OBYYmvTo3k47Go/htSc2hBl0"
Date: Mon, 30 Oct 2023 02:00:46 GMT
Connection: keep-alive
Keep-Alive: timeout=5

# Payload
{
  "code": 404,
  "message": {
    "RESPONSE_TEXT": "Oups! La ressource demandée est introuvable mais peut être disponible à l'avenir",
    "RESPONSE_CODE": "PAGE_NOT_FOUND_MESSAGE"
  }
}
Response examples (404)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 317.436
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 89
X-RateLimit-Reset: Mon Oct 30 2023 03:06:04 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 167
ETag: W/"a7-pG5OBYYmvTo3k47Go/htSc2hBl0"
Date: Mon, 30 Oct 2023 02:00:46 GMT
Connection: keep-alive
Keep-Alive: timeout=5

# Payload
{}