oskardudycz / EventSourcing.NetCore

Examples and Tutorials of Event Sourcing in .NET
https://event-driven.io
Creative Commons Attribution Share Alike 4.0 International
3.42k stars 515 forks source link

If Match Header value #171

Open goldytech opened 2 years ago

goldytech commented 2 years ago

Hi, I was looking at the HelpDesk sample in the repo and found out that the API accepts the If-Match request header. I'm not sure what value needs to be passed in this header and its significance as far as versioning is concerned.

I appreciate any help you can provide.

stavris8894 commented 2 years ago

You need to add the latest version number of the event. For example "1" if its your first call after creating it. (you need to add the "")