Closed
Description
Hi,
Firstly, sorry if this is a obvious question, but is it possible to have one big interface/api defined in multiple pieces?
Maybe a folder structure like this? Where each interface is in its own folder inside a class.
/Acme
AcmeApi.cs (IAcmeApi interface)
/photos
/IPhotosApi (acme.com/api/photos)
/videos
/IVideosApi (acme.com/api/videos)
then using just the IAcmeApi interface
var acmeApi = RestService.For<IAcmeApi>("https://api.acme.com");
var stuff = await acmeApi.DoStuff("banana");
// or maybe
var stuff = await acmeApi.Videos.DoStuff("banana");
I hope it makes sense.
Thank you.