GithubHelp home page GithubHelp logo

pomm-api-platform's People

Contributors

sanpii avatar stood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pomm-api-platform's Issues

Eager loading joined relations

Hello!

Could you please give a small hint on how the projection should be extended to get joined relations?
For instance:

"hydra:member": [
    {
      "@id": "/api/restaurants/1",
      "@type": "Restaurant",
      "id": 1,
      "deliveryTime": 10,
      "config": {
        "@id": "/api/configs/1",
        "@type": "Config",
        "dynamicWaitingTime": 0
      },
  }
]

By I could only get field config_id instead.
I thought it should be done with following steps:

  1. Add custom query with joins like docs says: https://github.com/pomm-project/ModelManager/blob/master/documentation/model_manager.rst#complex-queries
  2. Hook into normalizer to convert plain joined fields into multidimensional array

But I have no idea how to achieve step 1 with api platform.
Thanks in advance.

DataPersister POMM

I just try to add PATCH method on a resource and it seems that the DataPersister for POMM is not included, the response is the modified resource but she's not modified in DB

How does this work?

I'm looking for a simple example on how to use this in an API Platform project.
I tried to define a API resource referencing the flexible entity that I generated, but API platform is not able to detect the schema or return any results from a GET collection operation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.