As a quick run-through, i've got the following scenario
- Website which hosts c# web api services
- each webapi takes a 'request' message type and returns a 'response' message type
Also a winforms client app which has its own repository that consumes the webapi services for its own use. Is it good practice to put the request/response messages in a shared library which will be used by both the website, and by the client app bearing in mind if i update the webapi on the website, it could get out of sync with the distributed client apps, and may break functionality for them until they upgrade to the latest version.
thanks for any suggestions.
request/response messages. are you referring to an interface, like we have in WCF ? or just theclass modelsthat you are sending and receiving to/from the webApi ?