Skip to content

Jio api style: Introduce jIO API style to ERP5

Cédric Le Ninivin requested to merge cedric.leninivin/erp5:jio-api-style into master

First batch introducing jIO API Style to ERP5.

  • JSON Type has been updated to be use as Portal Type for Records of the API
    • Added interface for JSON Type to access JSON Content
    • Added Property Sheet to store json_content when text_content is not available.
  • JSON Form Introduce new portal type to act as a Form. A JSON Schema is defined on the JSON Form, upon calling a JSON form with a json, the json is validated against the schema before being process by an "after Method" in charge of handling the content
  • jIO Web Section are introduced. It configure the API by defining action_types for all four methods: "Post", "Put", "Get", "allDocs". Actions matching the action_types can be used for the API. For "Put" and "Get" calls, the action is to be defined on the portal_type of the object. For "Post" and "allDocs" the action is to be defined on the portal type: "jIO Web Section".
Edited by Cédric Le Ninivin

Merge request reports