nishiki-tech / nishiki-documents

8 stars 0 forks source link

Should `/containers/{containerId}/foods/{foodId}` has `creaedAt`? #128

Closed taniguchiiqqq closed 10 months ago

taniguchiiqqq commented 10 months ago

Your Question

Should PUT /containers/{containerId}/foods/{foodId} endpoint has creaedAt prop? When a resource is updated, all props including unchanged ones should be sent to a endpoint.

Why are you asking?

CreatedAt prop is immutable, so I hesitate to make it look mutable.

Additional Information

Any other internal context or references.

hitohata commented 10 months ago

In my humble opinion, I think It shouldn't add a createdAt attribute. It will be a cause of confusion.

taniguchiiqqq commented 10 months ago

@hitohata Thank you for your opinion. I won't add createdAt attribute.