You are here

public function JsonApiGenerator::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/JsonApiGenerator.php, line 811

Class

JsonApiGenerator
Defines an OpenApi Schema Generator for the JsonApi module.

Namespace

Drupal\openapi\Plugin\openapi\OpenApiGenerator

Code

public function getProduces() {
  return [
    'application/vnd.api+json',
  ];
}