Skip to content

a DJA REST API client models.Model? #472

Closed
@n2ygk

Description

@n2ygk

Has anyone implemented a models.Model that is a client of a JSON:API API along the lines of https://github.com/Yupeek/django-rest-models? This seems to require https://github.com/AltSchool/dynamic-rest (DREST) which I'm not familiar with but looks sort of similar to DJA. Perhaps django-rest-models could be extended to support DJA as well as DREST? Maybe this is already solved?

In case you're wondering what I'm trying to accomplish, it's a multitier microservices architecture similar to what's described here, here or here.

In other words, the DRF database model APIs are at the bottom (persistence) layer but would be called from apps a layer above and to those apps should similarly look like a Model so all the usual ORM stuff "just works." JSON:API provides all the API HATEOAS plumbing to make this feasible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions