unee-t / enterprise-rest-api

RestFUL API on Unee-T enterprise
https://eapi.dev.unee-t.com/
0 stars 1 forks source link

API to edit an existing unit #4

Open franck-boullier opened 5 years ago

franck-boullier commented 5 years ago

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 modified The request ID for the update request

Failure:

Include descriptive error message.

What happens in the back end:

kaihendry commented 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

franck-boullier commented 5 years ago

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.

kaihendry commented 5 years ago

Let me know when unte_api_edit_unit table is ready and I'll implement.