why not both? Have the table column autogenerate UUID if insert does not have one or else insert if it does. This provides an added flexibility for scenarios mentioned in the comments.
I do this (i.e. if UUID wasn't supplied in the API call - the backend will generate it), but for me it's only useful for debuging or manual API testing.
Reason: I'm not a machine, so I dislike generating UUIDs by myself ;)
nivertech|2 years ago
Reason: I'm not a machine, so I dislike generating UUIDs by myself ;)