Accounts-accountNumber-web-domainName-php:GET
From Hostway API Documentation
				
								
				Revision as of 07:53, 20 April 2015 by Velimira.metodieva  (Talk)
				
			GET /accounts/{accountNumber}/web/{domainName}/php
Checks if PHP feature is enabled for a domain
Contents | 
Request
GET /accounts/{accountNumber}/web/{domainName}/php
URI Parameters
- accountNumber - string
 - The user account to which the domain name and the PHP feature belong
 
- domainName - string
 - The target domain name (domain name under which the site is actually hosted)
 
Request Headers
- Authorization - HTTP Authorization header [1]
 - The Authentication credentials of the client application.
 
Response
Response Body
{
"status": "{status}",
"links": [{"href": "http://{server_name}/accounts/{accountNumber}/web/{domainName}/php/", "rel": "self"}]
}
 
Parameters
- status - string
 - Status of the page.
 
- links - list
 - Hypermedia for this resource
 
Status Code
- 200 OK
 - Success
 
- 401 Unauthorized
 - The supplied credentials are invalid or do not provide permissions for this operation.
 
- 403 Forbidden
 - The authenticated user is not allowed to access this resource
 
- 404 Not Found
 - The domain name does not exist.
 
Examples
Check if PHP feature is enabled for a domain
Request
GET /accounts/test-account/email/test.com/php
Response
200 OK
{
"status": "active",
"links": links": [{"href": "https://api.hostway.com/accounts/test-account/web/test.com/php/", "rel": "self"}]
}
 
Try to check PHP feature for not existing domain
Request
GET /accounts/test-account/email/test.com/php
Response
404 Not Found
{"itemNotFound": {"guid": "", "message": "Resource not found", "code": 404, "details": ""}}