@@ -380,44 +380,62 @@ <h1>EDI endpoint</h1>
380380< p > < strong > Table of contents</ strong > </ p >
381381< div class ="contents local topic " id ="contents ">
382382< ul class ="simple ">
383- < li > < a class ="reference internal " href ="#configuration " id ="toc-entry-1 "> Configuration</ a > </ li >
384- < li > < a class ="reference internal " href ="#bug-tracker " id ="toc-entry-2 "> Bug Tracker</ a > </ li >
385- < li > < a class ="reference internal " href ="#credits " id ="toc-entry-3 "> Credits</ a > < ul >
386- < li > < a class ="reference internal " href ="#authors " id ="toc-entry-4 "> Authors</ a > </ li >
387- < li > < a class ="reference internal " href ="#contributors " id ="toc-entry-5 "> Contributors</ a > </ li >
388- < li > < a class ="reference internal " href ="#maintainers " id ="toc-entry-6 "> Maintainers</ a > </ li >
383+ < li > < a class ="reference internal " href ="#configuration " id ="toc-entry-1 "> Configuration</ a > < ul >
384+ < li > < a class ="reference internal " href ="#exec-modes " id ="toc-entry-2 "> Exec modes</ a > </ li >
385+ </ ul >
386+ </ li >
387+ < li > < a class ="reference internal " href ="#bug-tracker " id ="toc-entry-3 "> Bug Tracker</ a > </ li >
388+ < li > < a class ="reference internal " href ="#credits " id ="toc-entry-4 "> Credits</ a > < ul >
389+ < li > < a class ="reference internal " href ="#authors " id ="toc-entry-5 "> Authors</ a > </ li >
390+ < li > < a class ="reference internal " href ="#contributors " id ="toc-entry-6 "> Contributors</ a > </ li >
391+ < li > < a class ="reference internal " href ="#maintainers " id ="toc-entry-7 "> Maintainers</ a > </ li >
389392</ ul >
390393</ li >
391394</ ul >
392395</ div >
393396< div class ="section " id ="configuration ">
394397< h2 > < a class ="toc-backref " href ="#toc-entry-1 "> Configuration</ a > </ h2 >
395398< p > Go to “EDI -> Config -> Endpoints”.</ p >
399+ < div class ="section " id ="exec-modes ">
400+ < h3 > < a class ="toc-backref " href ="#toc-entry-2 "> Exec modes</ a > </ h3 >
401+ < p > Each endpoint must pick an “Exec mode” that decides how the incoming
402+ request is turned into work for the EDI framework:</ p >
403+ < ul class ="simple ">
404+ < li > < strong > Create exchange record</ strong > (default): persists the raw HTTP body as a
405+ new exchange record on the configured backend / exchange type and
406+ returns < tt class ="docutils literal "> {"status": "queued", "id": <identifier>}</ tt > with HTTP 200.
407+ Use this for “receive and queue” endpoints — no per-endpoint code
408+ snippet is required, and request validation (e.g. JSON Schema) is
409+ handled by the endpoint mixin before the handler runs.</ li >
410+ < li > < strong > Execute code</ strong > : runs the user-provided code snippet, giving full
411+ control over how the request is processed and what is returned.</ li >
412+ </ ul >
413+ </ div >
396414</ div >
397415< div class ="section " id ="bug-tracker ">
398- < h2 > < a class ="toc-backref " href ="#toc-entry-2 "> Bug Tracker</ a > </ h2 >
416+ < h2 > < a class ="toc-backref " href ="#toc-entry-3 "> Bug Tracker</ a > </ h2 >
399417< p > Bugs are tracked on < a class ="reference external " href ="https://github.com/OCA/edi-framework/issues "> GitHub Issues</ a > .
400418In case of trouble, please check there if your issue has already been reported.
401419If you spotted it first, help us to smash it by providing a detailed and welcomed
402420< a class ="reference external " href ="https://github.com/OCA/edi-framework/issues/new?body=module:%20edi_endpoint_oca%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior** "> feedback</ a > .</ p >
403421< p > Do not contact contributors directly about support or help with technical issues.</ p >
404422</ div >
405423< div class ="section " id ="credits ">
406- < h2 > < a class ="toc-backref " href ="#toc-entry-3 "> Credits</ a > </ h2 >
424+ < h2 > < a class ="toc-backref " href ="#toc-entry-4 "> Credits</ a > </ h2 >
407425< div class ="section " id ="authors ">
408- < h3 > < a class ="toc-backref " href ="#toc-entry-4 "> Authors</ a > </ h3 >
426+ < h3 > < a class ="toc-backref " href ="#toc-entry-5 "> Authors</ a > </ h3 >
409427< ul class ="simple ">
410428< li > Camptocamp</ li >
411429</ ul >
412430</ div >
413431< div class ="section " id ="contributors ">
414- < h3 > < a class ="toc-backref " href ="#toc-entry-5 "> Contributors</ a > </ h3 >
432+ < h3 > < a class ="toc-backref " href ="#toc-entry-6 "> Contributors</ a > </ h3 >
415433< ul class ="simple ">
416434< li > Simone Orsi << a class ="reference external " href ="mailto:simone.orsi@camptocamp.com "> simone.orsi@camptocamp.com</ a > ></ li >
417435</ ul >
418436</ div >
419437< div class ="section " id ="maintainers ">
420- < h3 > < a class ="toc-backref " href ="#toc-entry-6 "> Maintainers</ a > </ h3 >
438+ < h3 > < a class ="toc-backref " href ="#toc-entry-7 "> Maintainers</ a > </ h3 >
421439< p > This module is maintained by the OCA.</ p >
422440< a class ="reference external image-reference " href ="https://odoo-community.org ">
423441< img alt ="Odoo Community Association " src ="https://odoo-community.org/logo.png " />
0 commit comments