Skip to content

Decoupling vue-mc from RESTful APIs #155

Open
@bshepherdson

Description

@bshepherdson

I really like the patterns vue-mc brings! Thanks for building it and documenting it clearly.

I saw a question about GraphQL, and this might be similar. I'm working with a gRPC backend, not a JSON REST endpoint. Some of the RPCs it defines are very straightforward CRUD requests and could easily be adapted to the fetch/save/delete patterns of vue-mc.

However, the assumption that we're targeting a JSON REST API is deeply shot through the design and API of vue-mc.

Has there been any work on this front before? It seems sane in principle to use a Strategy pattern, so most of vue-mc is written against a generic request/response interface and then have REST, gRPC and other (including user-supplied) implementations.

With Vue 3 (and its new ref() reactivity system) in RC, is an overhaul of vue-mc planned or in progress? That might be a good time to make the changes I'm imaging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions