I am putting together an Api Wrapper for the Yahoo! Fantasy Sports Api and I am having a back in forth in my head how to best implement the Api. Here is the doc to the api itself.
I have put together the foundation of a .NET Standard Class Library that handles the auth and works well, and I have now moved on to the getting the actual data. I want to structure the different endpoints in a way that follows robust Api design. Based on the Yahoo! documentation, here are the different “regions” of their Api.
- Game (Resource or Collection)
- League (Resource or Collection)
- Player (Resource or Collection)
- Roster (Resource)
- Team (Resource or Collection)
- Transaction (Resource or Collection)
- User (Resource)
Each region has it’s own data schema and extensions on it to get the data. I am looking for some advice on how to structure that in a way that allows me to properly use Dependency Injection but doesn’t create interface hell. One approach would be to create a service for each region (for instance 2 services for Game), but that seems to not be an approach that wold allow for decent reuse across the Api. One example of a wrapper for the Yahoo! Api is here
But this is in nodeJS and doesn’t follow OOP principals which I would like to. I can further elaborate more if needed. Thanks for the help.
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!