Open franck-boullier opened 5 years ago
I don't quite understand how this works. So it's not simply an UPDATE to a row in the unte_api_add_unit table?
How am I supposed to call the MEFE API? Isn't this best done at the MEFE end point? cc @nbiton
So it's not simply an UPDATE to a row in the unte_api_add_unit table?
No it is NOT an UPDATE to a row in the unte_api_add_unit table
This is an INSERT to a different table unte_api_edit_unit table
How am I supposed to call the MEFE API?
You are not supposed to call the MEFE API at all, the UNTE will do it for you.
Isn't this best done at the MEFE end point?
No it's not possible to do this at the MEFE end point: the information needs to be stored in the UNTE database.
Let me know when unte_api_edit_unit table is ready and I'll implement.
How it should work:
Input:
THIS NEEDS TO BE UPDATED IN LINE WITH WHAT WAS DISCUSSED IN #3
Output:
Success:
Return timestamp: date and time (Z) when the unit was successfully modifiedThe request ID for the update requestFailure:
Include descriptive error message.
What happens in the back end:
requestorUserId
is allowed to edit the unit.