L
L
larionov_n2019-02-09 21:29:55
ORM
larionov_n, 2019-02-09 21:29:55

How to map relational relationships to JSON?

Good evening, tell me as many ways as possible how to bind relational objects working with an API that returns not full model objects, but only identifiers.
I have an idea to make a project, I looked at how to work with the API whose data I want to use, not a single method returns full models, but only IDs with which I will request nested object models through other API methods.
What are the ways to conveniently collect full objects already in your application? (Interested in Backend environment).
Interested in both the manual method and ready-made tools.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2019-02-09
@inoise

HAL, HATEOAS, GraphQL

L
larionov_n, 2019-02-09
@larionov_n

I liked this library for Python: https://github.com/beregond/jsonmodels - I think to define models in the code and already collect these objects through API requests

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question