lundi 2 août 2021

Looking for best practices (architecture) on implementing a RESTful client in C# [closed]

i'm currently making my first steps with RESTful services in C#. I want to implement a REST client in C# and was wondering if there is any good guide on how to design a well maintainable architecture of a REST client in C#. There is a huge load of tutorials on how to get started with writing a REST client, but those are more like first-step tutorials. I'm looking for advanced tutorials.

My concrete questions are:

  • How do i setup my project (classes, interfaces etc.), when my client has to retrieve multiple resources?
  • AFAIK in REST you may need to query multiple resources until you have all the data you need. In my current example i would have to make 5 calls to get everything together. What is the best approach here. Do i use a single class for every remote resource, or do i use a single class, that gets all resources and returns an aggregated result?
  • Is there a design pattern for that?

Thanks,

BR;

Michael

Aucun commentaire:

Enregistrer un commentaire