You are here

public function JsonApiGenerator::getConsumes in OpenAPI for JSON:API 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/openapi/OpenApiGenerator/JsonApiGenerator.php \Drupal\openapi_jsonapi\Plugin\openapi\OpenApiGenerator\JsonApiGenerator::getConsumes()

File

src/Plugin/openapi/OpenApiGenerator/JsonApiGenerator.php, line 848

Class

JsonApiGenerator
Defines an OpenApi Schema Generator for the JsonApi module.

Namespace

Drupal\openapi_jsonapi\Plugin\openapi\OpenApiGenerator

Code

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