Back to problems

Store a hierarchy and return all children

System Design · Atlassian · Medium

Design a service that persists nodes arranged in a hierarchy and exposes HTTP endpoints for creating and traversing that structure. The hierarchy may be a forest, meaning several independent root nodes are allowed. Required operations: Insert a node below a given parent. Retrieve all descendants of a node, expanding the whole subtree recursively. Pay particular attention to REST API design, database schema choices, and edge-case handling. Your answer should include: API…

Checking your access…