Openbravo Issue Tracking System - Retail Modules
View Issue Details
0056450Retail ModulesRetail APIpublic2024-09-16 07:232024-10-04 10:36
AgatheBertin 
ludmila_ursu 
normalmajorhave not tried
closedfixed 
5
 
 
No
0056450: API LITIGATION - Wrong Format in the swagger
only GET is concerned

===> lines.quantity is described as STRING when it's a number
Make a GET call of a litigiation and get this kind of result

"lines": [
            {
                "id": "416D5C9081894F7BBE7C54A6795B0FD6",
                "lineNo": 10,
                "product": "366833",
                "quantity": 2,
                "UOM": "Unit",
                "status": "A"
            }
        ],
Change the swagger description to put number instead of string
No tags attached.
png swagger2.png (146,324) 2024-10-02 13:33
https://issues.openbravo.com/file_download.php?file_id=20212&type=bug
png
Issue History
2024-09-16 07:23AgatheBertinNew Issue
2024-09-16 07:23AgatheBertinAssigned To => Triage Platform Conn
2024-09-16 07:23AgatheBertinTriggers an Emergency Pack => No
2024-09-16 09:18adrianromeroAssigned ToTriage Platform Conn => Retail
2024-09-16 09:48guillermogilAssigned ToRetail => Triage Omni OMS
2024-09-19 22:13aferrazAssigned ToTriage Omni OMS => Triage Omni WMS
2024-10-01 18:16mtaalAssigned ToTriage Omni WMS => ludmila_ursu
2024-10-02 13:33ludmila_ursuNote Added: 0169899
2024-10-02 13:33ludmila_ursuFile Added: swagger2.png
2024-10-02 17:06ludmila_ursuNote Added: 0169906
2024-10-02 17:08ludmila_ursuNote Added: 0169907
2024-10-04 10:36ludmila_ursuNote Added: 0169990
2024-10-04 10:36ludmila_ursuStatusnew => acknowledged
2024-10-04 10:36ludmila_ursuStatusacknowledged => scheduled
2024-10-04 10:36ludmila_ursuStatusscheduled => resolved
2024-10-04 10:36ludmila_ursuResolutionopen => fixed
2024-10-04 10:36ludmila_ursuStatusresolved => closed

Notes
(0169899)
ludmila_ursu   
2024-10-02 13:33   
URL:
https://livebuilds.openbravo.com/context/retail_modules_pgsql_pi/api?urls.primaryName=Business%20API%20-%20Transactional%20Data [^]
(0169906)
ludmila_ursu   
2024-10-02 17:06   
Merge request:
https://gitlab.com/openbravo/product/pmods/org.openbravo.litigations/-/merge_requests/8 [^]
(0169907)
ludmila_ursu   
2024-10-02 17:08   
Test plan:
* go the Swagger URL (from livedevbuilds, click on API [link](https://livebuilds.openbravo.com/context/retail_modules_pgsql_pi/api [^]))
* on the top right, select "Business API - Transactional Data
* go to the "Litigation" part and open one of the GET api url
* in the "Responses" part click on "Schema" and open the menus: data, Items, lines, Items. Notice that for "quantity" element, the type of the data is now "number"
(0169990)
ludmila_ursu   
2024-10-04 10:36   
Merge request merged.