AO-StreetArt / Adrestia

Aesel Gateway Service
Apache License 2.0
0 stars 1 forks source link

Separate Create and Update API #65

Closed AO-StreetArt closed 6 years ago

AO-StreetArt commented 6 years ago

Initially, we thought that having the Create and Update API's be the same would make life easier for the clients by not having to distinguish. The reality is that the client already knows what it wants to do, and we incur a performance penalty by figuring out which one needs to get called.

In addition, when a client calls create and an existing object is found, they'd prefer to see an error rather than unknowingly update the existing one. There may be some exceptions to this, but that should be the responsibility of the client.

This should be updated for both the Object and Scene controllers