Commit b815419f authored by Titouan Soulard's avatar Titouan Soulard

erp5_api_style: fix Content-Type for hyperschema

parent d575b87b
...@@ -29,6 +29,9 @@ data["links"] = data["links"] + populateLinks("post", "post/", context.ERP5Site_ ...@@ -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("put", "put/", context.ERP5Site_getAllActionListForAPIPut())
data["links"] = data["links"] + populateLinks("allDocs", "allDocs/", context.ERP5Site_getAllActionListForAPIAllDocs()) 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 import json
return json.dumps( return json.dumps(
data, data,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment