Class RESTian_Service
A RESTian_Service represents a service that can be called on an API.
Often a service is defined as a URL endpoint plus an HTTP method. RESTian_Client subclasses are responsible to register the API services that they need to call.
Located at core-classes/class-service.php
public
|
|
public
string
|
|
public
boolean|
|
|
public
boolean|
|
public
string
|
$service_name |
|
#
|
public
string
|
$service_type | 'service' |
#
Type of service - 'resource', 'action' or (generic) 'service' |
public
string
|
$path | '/' |
|
public
string
|
$content_type | 'json' |
#
Specifies content type expected using RESTian defined content types. |
public
|
$client |
|
#
|
public
boolean|array
|
$requires | false |
#
List of other variable names that are required for this servcie to be valid. |
public
boolean|array
|
$not_vars | false |
#
List of other variable names that make this variable invalid when they appear. If in "name=value" format then only invalid when the parameter appears with the specified value. |
public
array
|
$vars | false |
#
List of valid parameter variables |
public
boolean
|
$needs_authentication | false |
#
If true this servie requires authentication |
public
boolean|string| |
$request_settings | false |
#
If exists limits options for this service |
public
string
|
$charset | 'utf-8' |
#
character set used |