Home / Companies / Redocly / Blog / Post Details
Content Deep Dive

Rethinking sub-resources in API design

Blog post from Redocly

Post Details
Company
Date Published
Author
Adam Altman
Word Count
670
Company Posts That Month
3
Language
-
Hacker News Points
-
Post removed?
No
Summary

In the dynamic field of API design, the use of sub-resources can introduce significant complexities, as illustrated by experiences from Rebilly and Redocly. Initially, sub-resources like customer subscriptions seemed logical but led to cumbersome processes and inefficiencies, especially when handling tasks such as subscription cancellations and reactivations. This design choice resulted in extensive restructuring efforts to address the inefficiencies. Consequently, the lesson learned was to avoid sub-resources unless absolutely necessary and to consider the full lifecycle of an entity in API design. At Redocly, a rule was implemented to detect sub-resource usage automatically, preventing potential inefficiencies from reaching production. This experience underscores the importance of thoughtful API design and encourages ongoing learning and adaptation in the field.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
LLM 2 2,593 281 107 +38%
MCP 2 65 24 4 -22%
AI Model Fine-tuning 1 423 116 63 +16%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.