Hello everyone,
we currently have some thinkings about the security while using CRUD API.
What we want to have is something similar to all other marketplaces.
- You have your page to select products - each product is only available once (First Dataverse table)
- Those selections are submitted to a shopping cart (If needed 2nd table)
- We assumed the best thing would be to now set a flag for the product so others cannot select it.
- Purchase it which adds the item to a third table and runs a cloud flow deleting the entry from the first table
Issues we thought about.
- Somebody knowing how to use the API can just flag all products with a script and the page won't work as intended.
- Liquid is not working as the cache can not always be loaded in realtime which is needed
- The UPDATE function could be used to delete the flag so others can see the item again
Does somebody has a good approach for such a thing?
The CRUD API security documentation is a bit short, if one has experience there or can point out things to take care about, highly appreciated.