© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4mo ago•
5 replies
Vortac

Service Agnostic API Wrapper Library Project Structuring

I've been developing a library for interacting with an API, and now that I've been developing it somewhat, I've realized that there's a few similar APIs that I'd like my library to interact with. One of these APIs has nearly identical endpoints, and for the identical endpoints, I was able to successfully deserialize the JSON using my existing JSONProperty annotations and Converters (although the responses are not fully 1:1).

I was just wondering, how should I restructure the project in a way that users can select the API they want to use? If I were to make an interface (and have the library consumers select the concrete implementation), some of the APIs have endpoints that others lack.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Any good guide on project structuring
C#CC# / help
2mo ago
✅ Azure app service Web API project not running
C#CC# / help
2y ago
Need help structuring a class library for internal tools
C#CC# / help
3y ago
❔ Web service API
C#CC# / help
3y ago