Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
d79a5205
Commit
d79a5205
authored
Mar 18, 2024
by
Titouan Soulard
Committed by
Romain Courteaud
Dec 30, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_api_style: fix Content-Type for hyperschema
parent
64138c4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/jIOWebSection_getAPIJSONHyperSchema.py
...ins/erp5_api_style/jIOWebSection_getAPIJSONHyperSchema.py
+3
-0
No files found.
bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/jIOWebSection_getAPIJSONHyperSchema.py
View file @
d79a5205
...
...
@@ -29,6 +29,9 @@ data["links"] = data["links"] + populateLinks("post", "post/", context.ERP5Site_
data
[
"links"
]
=
data
[
"links"
]
+
populateLinks
(
"put"
,
"put/"
,
context
.
ERP5Site_getAllActionListForAPIPut
())
data
[
"links"
]
=
data
[
"links"
]
+
populateLinks
(
"allDocs"
,
"allDocs/"
,
context
.
ERP5Site_getAllActionListForAPIAllDocs
())
if
context
.
REQUEST
is
not
None
:
context
.
REQUEST
.
RESPONSE
.
setHeader
(
"Content-Type"
,
"application/json"
)
import
json
return
json
.
dumps
(
data
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment