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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
b815419f
Commit
b815419f
authored
Mar 18, 2024
by
Titouan Soulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_api_style: fix Content-Type for hyperschema
parent
d575b87b
Changes
1
Show 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 @
b815419f
...
...
@@ -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