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