primary-violetP
Refine12mo ago
9 replies
primary-violet

Pulling data from hierarchical api

I have an api that exposes multiple endpoints that are hierarchical in nature.
For example:

/container - returns a list with minimal data like id and name
/container/types - returns a list of types
/container/types/type - returns a list of items that belong to each type
container/types/type/id - returns a specific item

I need to build a form that will contain all of the specific items, or possibly a form for each one.

What is the correct way to achieve this?
Was this page helpful?