Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using this module to rewrite paths, the OpenAPI description has invalid paths:
{
"basePath": "/jsonapi",
"paths": {
"/api/recipes": ...
}
...
}
If I'm reading the OpenAPI spec correctly, the paths are supposed to be concatenated to basePath. But that would result in /jsonapi/api/recipes, which is not a valid URL.
If I uninstall this module, the output is correct:
{
"basePath": "/jsonapi",
"paths": {
"/node/recipe": ...
}
...
}
Comments
Comment #2
e0ipsoAgain, this is probably missing code in the integration for JSON API in the Schemata module.
Comment #3
richgerdesThis issue was ultimately was caused by the way OpenApi handled the generation of the paths. This has been fixed and addressed in the dev version of the OpenApi module. See #2897665: Wrong Server URLs in /admin/api for more details.
Comment #4
e0ipsoThanks @richgerdes for fixing this and looping back into this issue!