Answer the question
In order to leave comments, you need to log in
How to correctly connect data when working with API?
There are 2 applications: main and auxiliary. The second receives data from the first through the API. In some cases directly, in some of the JS.
API <=> Application <=> JS .
It was necessary to combine orders with other data and display them in a table. Options:
Answer the question
In order to leave comments, you need to log in
Better in the API is the only method
- if it does not slow down, then /api/get-orders-with-invoices
- if it slows down, then /api/get-orders with the optional parameter 'isWithInvoices'
Sorting is also a separate parameter 'sortField'.
In order not to produce another asc / desc parameter, you can sortField=name in ascending order and sortField=-name in descending order.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question