Skip to content

Commit

Permalink
fixup! [ADD] endpoint_jsonifier
Browse files Browse the repository at this point in the history
  • Loading branch information
SilvioC2C committed Jun 26, 2024
1 parent 6ce1013 commit aecf485
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions endpoint_jsonifier/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

{
"name": "Endpoint JSONifier",
"summary": "JSON-ify endpoints responses",
"summary": "Allow to configure jsonifier parsers on endpoints",
"version": "14.0.1.0.0",
"category": "Uncategorized",
"website": "https://github.com/OCA/web-api",
"author": "Camptocamp, Odoo Community Association (OCA)",
"maintainers": ["SilvioC2C"],
"maintainers": ["SilvioC2C", "simahawk"],
"license": "LGPL-3",
"installable": True,
"depends": ["endpoint", "jsonifier"],
Expand Down
2 changes: 1 addition & 1 deletion endpoint_jsonifier/readme/USAGE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ For example:
parser = endpoint.export_id.get_json_parser()
prod_domain = [("sale_ok", "=", True)]
prod_data = [p.jsonify(parser) for p in env["product.product"].search(prod_domain)]
prod_data = env["product.product"].search(prod_domain).jsonify(parser)
resp = Response(json.dumps(prod_data), content_type="application/json", status=200)
result = dict(response=resp)

0 comments on commit aecf485

Please sign in to comment.