Changes for page Batch запити

Last modified by Ashterix on 2024/05/16 18:58

From version 3.1
edited by Ashterix
on 2024/05/16 18:56
Change comment: There is no comment for this version
To version 4.1
edited by Ashterix
on 2024/05/16 18:58
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -11,8 +11,6 @@
11 11  
12 12  Let's imagine we are developing a backend API for an online store and we already have a method {{code language="none"}}ProductService.getInfo{{/code}} for the entity {{code language="none"}}Product{{/code}}. The task on the frontend is to implement the logic of adding products to the cart and updating product information upon request (for example, when opening the cart, we need to update information about the products the user added: availability, prices, descriptions, etc.).
13 13  
14 -In a classical scenario, there are two approaches:
15 -
16 16  == Scenario that 100% of developers follow ==
17 17  
18 18  A task is set for the backend to create a separate API method that returns a collection of objects by an array of identifiers. This requires the working time of a backend developer, a tester, and a frontend developer since the new method must be covered by unit tests and additional scenarios for regression testing. This must be done despite having a method that can return one product by its id.