Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
cubes
api
Commits
80840307dd82
Commit
80840307dd82
authored
1 year ago
by
Arnaud Vergnet
Browse files
Options
Downloads
Patches
Plain Diff
chore: fix back
parent
3046939c7fe8
Branches
branch/default
Branches containing commit
No related tags found
1 merge request
!67
feat: add logout route
Pipeline
#223061
passed with warnings
1 year ago
Stage: lint
Stage: tests
Stage: qa
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cubicweb_api/openapi/openapi.py
+3
-3
3 additions, 3 deletions
cubicweb_api/openapi/openapi.py
with
3 additions
and
3 deletions
cubicweb_api/openapi/openapi.py
+
3
−
3
View file @
80840307
...
...
@@ -72,9 +72,9 @@
paths_dict
:
Optional
[
Dict
[
str
,
Dict
]]
=
spec_dict
[
"
paths
"
]
for
path_str
,
path_item
in
paths_dict
.
items
():
# Update the pyramid route name
path_item
[
OPENAPI_PYRAMID_KEY
]
=
f
"
{
API_ROUTE_NAME_PREFIX
}{
path_item
[
OPENAPI_PYRAMID_KEY
]
}
"
path_item
[
OPENAPI_PYRAMID_KEY
]
=
(
f
"
{
API_ROUTE_NAME_PREFIX
}{
path_item
[
OPENAPI_PYRAMID_KEY
]
}
"
)
if
not
enable_login
:
del
paths_dict
[
"
/login
"
]
...
...
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