public function JsonApiGenerator::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/ JsonApiGenerator.php, line 802
Class
- JsonApiGenerator
- Defines an OpenApi Schema Generator for the JsonApi module.
Namespace
Drupal\openapi\Plugin\openapi\OpenApiGeneratorCode
public function getConsumes() {
return [
'application/vnd.api+json',
];
}