public function RestGenerator::getConsumes in OpenAPI 8
Get a list of all MIME Type that the API Consumes
Return value
array An array of all MIME Type that the API Consumes
Overrides OpenApiGeneratorBase::getConsumes
File
- src/
Plugin/ openapi/ OpenApiGenerator/ RestGenerator.php, line 116
Class
- RestGenerator
- Defines an OpenApi Schema Generator for the Rest module.
Namespace
Drupal\openapi\Plugin\openapi\OpenApiGeneratorCode
public function getConsumes() {
return $this
->generateMimeTypesFromFormats($this
->getRestSupportedFormats());
}