Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openapi_jsonapi
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
openapi_jsonapi
Commits
355d89f2
Commit
355d89f2
authored
10 months ago
by
Brad Jones
Browse files
Options
Downloads
Patches
Plain Diff
Exclude file-upload paths for now.
parent
32620f51
No related branches found
No related tags found
No related merge requests found
Pipeline
#232422
failed
10 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/openapi/OpenApiGenerator/JsonApiGenerator.php
+6
-1
6 additions, 1 deletion
src/Plugin/openapi/OpenApiGenerator/JsonApiGenerator.php
with
6 additions
and
1 deletion
src/Plugin/openapi/OpenApiGenerator/JsonApiGenerator.php
+
6
−
1
View file @
355d89f2
...
...
@@ -247,6 +247,11 @@ class JsonApiGenerator extends OpenApiGeneratorBase {
$routes
=
$this
->
getJsonApiRoutes
();
$api_paths
=
[];
foreach
(
$routes
as
$route_name
=>
$route
)
{
if
(
str_starts_with
(
$route
->
getDefault
(
RouteObjectInterface
::
CONTROLLER_NAME
),
'jsonapi.file_upload:handleFileUploadFor'
))
{
// Special routes for file upload.
// @todo Special handling for file upload routes with links to docs.
continue
;
}
/** @var \Drupal\jsonapi\ResourceType\ResourceType $resource_type */
$resource_type
=
$this
->
getResourceTypeFromRoute
(
$route_name
,
$route
);
// @todo Enable config entities.
...
...
@@ -1156,7 +1161,7 @@ class JsonApiGenerator extends OpenApiGeneratorBase {
* {@inheritdoc}
*/
public
function
getApiName
()
{
return
$this
->
t
(
'JSON
API'
);
return
$this
->
t
(
'JSON
:
API'
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment