Move into nested docroot
This commit is contained in:
parent
83a0d3a149
commit
c8b70abde9
13405 changed files with 0 additions and 0 deletions
61
web/core/modules/rest/src/RestResourceConfigInterface.php
Normal file
61
web/core/modules/rest/src/RestResourceConfigInterface.php
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\rest;
|
||||
|
||||
use Drupal\Core\Config\Entity\ConfigEntityInterface;
|
||||
use Drupal\Core\Entity\EntityWithPluginCollectionInterface;
|
||||
|
||||
/**
|
||||
* Defines a configuration entity to store enabled REST resources.
|
||||
*/
|
||||
interface RestResourceConfigInterface extends ConfigEntityInterface, EntityWithPluginCollectionInterface {
|
||||
|
||||
/**
|
||||
* Granularity value for per-method configuration.
|
||||
*/
|
||||
const METHOD_GRANULARITY = 'method';
|
||||
|
||||
/**
|
||||
* Granularity value for per-resource configuration.
|
||||
*/
|
||||
const RESOURCE_GRANULARITY = 'resource';
|
||||
|
||||
/**
|
||||
* Retrieves the REST resource plugin.
|
||||
*
|
||||
* @return \Drupal\rest\Plugin\ResourceInterface
|
||||
* The resource plugin
|
||||
*/
|
||||
public function getResourcePlugin();
|
||||
|
||||
/**
|
||||
* Retrieves a list of supported HTTP methods.
|
||||
*
|
||||
* @return string[]
|
||||
* A list of supported HTTP methods.
|
||||
*/
|
||||
public function getMethods();
|
||||
|
||||
/**
|
||||
* Retrieves a list of supported authentication providers.
|
||||
*
|
||||
* @param string $method
|
||||
* The request method e.g GET or POST.
|
||||
*
|
||||
* @return string[]
|
||||
* A list of supported authentication provider IDs.
|
||||
*/
|
||||
public function getAuthenticationProviders($method);
|
||||
|
||||
/**
|
||||
* Retrieves a list of supported response formats.
|
||||
*
|
||||
* @param string $method
|
||||
* The request method e.g GET or POST.
|
||||
*
|
||||
* @return string[]
|
||||
* A list of supported format IDs.
|
||||
*/
|
||||
public function getFormats($method);
|
||||
|
||||
}
|
Reference in a new issue