@robotical/appv2-warranty-service-lib
Version:
A tool that gathers data from the Apps and sends it to the Analytics server
11 lines (8 loc) • 709 B
Markdown
to migrate a new method first in warranty-service-lib add the ServerEndpointsResponse for that enpoint (build the types package)
Then in WarrantyService.ts file implement the method using dataToPost and response data typed.
Then in appv2-analytics-server, comment out the route in warrantyServiceRoutes.ts
Implement the controller method in the respective file. Make sure to use ServerResponse interfaces before sending each response
Then in warranty-service-lib add tests for that endpoint
# TODOs
- when the removeUser is implemented, uncomment it in the REGISTER_USER test (registeredUsersEndpoint..test.ts) ✅
- when the unregisterReport is implemented, uncomment it in the removeRegisteredUser method