I am working on an ASP.net Web Api that will be specific to our mobile clients to request data or update some values in the database.
These are the columns of my sample table that the client will have access to update.
1.id
2.Status
3.Lat
4.Long
So i was thinking that what would be a good design pattern? Like creating a single Method on api like UpdateColumn and handle any patch requests?
Or create specific methods like SetStatus, SetCoordinates and handle the data that is sent with them? This is not a public api as this will only act as a backend for the mobile clients.
Aucun commentaire:
Enregistrer un commentaire