Re:Any resources or advice for someone new to API design?
by rahhulk7 on Wednesday March 13, 2024 @06:04AM
(#39689696)
Thanks for the explanation! That makes sense to consider the database structure when choosing between REST and GraphQL. I hadn't thought about purpose-driven design before - focusing on the use case sounds key to avoiding bloated APIs. Do you have any favorite resources on designing for specific use cases?
Also, are there any tools that can help with documenting or visualizing different API design options?
The best way to think of an APIs design is; why do you need an API in the first place. Creating an API for the sake of having an API is what leads to terrible APIs. Instead design your API for its use case, and if you have multiple use-cases - maybe you need multiple APIs, or a more clever API design that blends well