papinet / papiNet-API

papiNet is a global paper, forest products and bioproducts industry e-Business initiative.
http://www.papinet.org/
Apache License 2.0
9 stars 3 forks source link

A POST without an uuid versus with an uuid created by the client #162

Closed larsolofsson closed 1 month ago

larsolofsson commented 3 months ago

In version 2.0.0 there is a Post of a purchase-order without an uuid. The server creates the uuid. In version 3.0.0 there is a Post of a logistics-delivery-note with an uuid. The client creates the uuid.

Shouldn't papiNet be consistent in specifying an POST of an item? Please explain why it is different for a purchase-order and a logistics-delivery-note.

Please outline pros and cons for uuid created by the server and created by the client.

Will a request to the server GET logistics-delivery-notes include also the ones with uuid created by the client?

patricekrakow commented 1 month ago

The idea is to have:

patricekrakow commented 1 month ago

We will not stick to this "wobbling" idea. We agreed that it is best to consider them as "equivalent", the difference being just who creates the UUID, the server or the client. And, we will "arbitrary" (for now) favor the creation of the UUID at server-side, in order to keep the client implementation as simple as possible, see issue #168.