[IMP] developer/api/extract_api: rework page to get rid of switchers

task-2787415

closes odoo/documentation#1692

X-original-commit: 85b7200944
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Antoine Vandevenne (anv) 2022-03-11 14:09:00 +00:00
parent 4721c7291f
commit 7b9bb78801

View File

@ -76,9 +76,6 @@ Request Body
The client email.
.. rst-class:: setup doc-aside
.. switcher::
.. code-block:: text
{
@ -127,9 +124,6 @@ Response
============= ==============================================================
.. rst-class:: setup doc-aside
.. switcher::
.. code-block:: text
{
@ -142,7 +136,6 @@ Response
}
}
.. _webservices/extract_api/invoice_get_results:
``/iap/invoice_extract/get_results``
@ -168,9 +161,6 @@ Request Body
The list of ``document_id`` for which you want to get the current parsing status.
.. rst-class:: setup doc-aside
.. switcher::
.. code-block:: text
{
@ -183,7 +173,6 @@ Request Body
"id": string (hex),
}
Response
^^^^^^^^
@ -213,9 +202,6 @@ Response
============= ==============================================================
.. rst-class:: setup doc-aside
.. switcher::
.. code-block:: text
{
@ -256,10 +242,7 @@ For each feature, we return a list of candidates and we spotlight the candidate
``words``
List of all the candidates for this feature ordered by decreasing score.
.. container:: doc-aside
.. switcher::
.. rst-class:: setup doc-aside
.. code-block:: text
{
@ -281,10 +264,7 @@ For each candidate we give its representation and position in the document. Cand
``page``
Page of the original document on which the candidate is located (starts at 0).
.. container:: doc-aside
.. switcher::
.. rst-class:: setup doc-aside
.. code-block:: text
{
@ -351,10 +331,7 @@ For each candidate we give its representation and position in the document. Cand
It follows a more specific structure. It is basically a list of dictionaries where each dictionary represents an invoice line. Each value follows
a :ref:`webservices/extract_api/invoice_get_results/feature_result` structure.
.. container:: doc-aside
.. switcher::
.. rst-class:: doc-aside
.. code-block:: text
[
@ -400,9 +377,6 @@ Request Body
Therefore you should validate all the features you want to validate at once.
.. rst-class:: setup doc-aside
.. switcher::
.. code-block:: text
{
@ -427,9 +401,6 @@ A **validation** for a given feature is a dictionary containing the textual repr
This format apply for all the features except for ``global_taxes`` and ``invoice_lines`` which have more complex validation format.
.. rst-class:: setup doc-aside
.. switcher::
.. code-block:: text
{ "content": string|float }
@ -449,9 +420,6 @@ validation for ``global_taxes``
Indicates if ``amount`` already contains the tax or not.
.. rst-class:: setup doc-aside
.. switcher::
.. code-block:: text
{"content": [
@ -470,9 +438,6 @@ validation for ``invoice_lines``
**lines** is a list of dictionaries. Each dictionary represents an invoice line. The dictionary keys speak for themselves.
.. rst-class:: setup doc-aside
.. switcher::
.. code-block:: text
{"lines": [
@ -517,9 +482,6 @@ Response
============= ==========================================================
.. rst-class:: setup doc-aside
.. switcher::
.. code-block:: text
{