You are here

public function JsonApiGenerator::getJsonApiBase in OpenAPI 8

Determine the base for JsonApi's endpoint routes.

Return value

string The url prefix used for all jsonapi resource endpoints.

3 calls to JsonApiGenerator::getJsonApiBase()
JsonApiGenerator::getBasePath in src/Plugin/openapi/OpenApiGenerator/JsonApiGenerator.php
Get base path for schema.
JsonApiGenerator::getJsonApiRoutes in src/Plugin/openapi/OpenApiGenerator/JsonApiGenerator.php
Gets the JSON API routes.
JsonApiGenerator::getPaths in src/Plugin/openapi/OpenApiGenerator/JsonApiGenerator.php
Returns the paths information.

File

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

Class

JsonApiGenerator
Defines an OpenApi Schema Generator for the JsonApi module.

Namespace

Drupal\openapi\Plugin\openapi\OpenApiGenerator

Code

public function getJsonApiBase() {
  return \Drupal::getContainer()
    ->getParameter('jsonapi.base_path');
}