Доработать back на node.js

Цена договорная
17 марта 2024, 09:52 • 12 откликов • 112 просмотров
Нужно доработать бэкэнд, написанный на node.js

Фулл таска
2. add jobs endpoint for picker (to approve user) ?????????? такой метод ведь уже есть (/drivers/confirm) или это не оно?

4. how to update nomenclature and others (PUT method), request returns 404? ??????????? PUT /nomenclature нормально отрабатывает. 404 не отдаёт

5. extend logistic point (/all) object by address entity, add id for each logisticPoint and add id for contacts ??????? непонятна задача. Нужно чтобы отдавало вместо address_id и contacts_id всю сущность?

9. 500 server error if try to get empty list without records ???????????? На каком эндпоинте?

10. get all ENUMS (e.g status and others) Тут как я понял, нужен эндпоинт, который будет отдавать все существующие енамы (employmentType, orderStatus, roles)?

11. receive number of company for unapproved driver (manager phone) ????? непонятна задача

13. create jobs-list GET endpoint ( Backend ) (make records into table) ????? непонятна задача

14. check geo data for orders (destination, departure, order itself) ??????????? тут имеется ввиду отдавать всю сущность для destination и departure? И что значит order itself?

16. change review for driver in the list ????????? тут нужен функционал добавления отзыва о водителе? Или он уже есть? Не нашёл его просто

еще пункт, в объекте order.departure и order.destination добавить address и contacts объекты
там payload:
{
"departureId": 0,
"destinationId": 0,
"grossWeight": 0,
"netWeight": 0,
"costPerRoute": 0,
"costPerTon": 0,
"priceNonCash": 0,
"priceCash": 0,
"plannedLoadingDate": "2024-02-16T07:58:03.585Z",
"plannedDeliveryDate": "2024-02-16T07:58:03.585Z",
"nomenclatureIds": [
0
]
}

но по идее у grossWeight и netWeight может быть разной у каждой выбранной номенклатуры
/api/logisticPoint/all - GET - возвращает в любом случае 500 ошибку




По идее осталось сделать только это, но нужно проверить
2. add jobs endpoint for picker (to approve user)
11. receive number of company for unapproved driver (manager phone)
14. check geo data for orders (destination, departure, order itself)
15. extend all entities, where we have id in the fields ( replace by the whole object isntead of id )

Ну и по сваггеру тоже. Я его вообще не трогал