Coder Social home page Coder Social logo

apijsonparamconvertercomponent's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working at Sogexia
  • ๐ŸŒฑ Iโ€™m currently improving my skills on Angular and RxJS
  • I try to improve my Lead Developer skills

Bio

Keen on web development, i practice a lot of PHP over different frameworks like symfony or copix. Even if i also did some #dotNet, #java or #coldfusion, i liked workgin with #meteorjs (a so cool #nodejs platform for server-side Javascript). Front-end is also a new part of my job with #VueJS (v2... not started on v3) and #Angular (v2...16).

In 2014 i did a talk about meteor at #LyonJs organization (in french https://youtu.be/ncLUaIDmCDk?t=1045) , and since the #worldwidemeteorday i leaded a #meteorjs #meetup group in #Lyon for 3 years.

In 2015 i did a talk at the great #BlendWebMixconference in #Lyon with the following subject : Going faster with MeteorJS (in french https://www.youtube.com/watch?v=6f7d_6VgiEM).

And in 2016 i did a talk on #VueJS at #BlendWebMixconference in #Lyon (in french https://www.youtube.com/watch?v=3-pt-7U2pNg).

I'm not a core contributor to open-source, but i try to help them when i can. You can find some of my contributions in symfony (code and docs), but also apiPlatform (mostly issues), clarity from VMWare ...:

If you have a project, contact me, i'm sure i may help you.

Except my work, i'm keen on bicycle (road for speed and mountain bike for nature) and i started small ultra races with the Gravelman Series (350km, ~4000 - 7500D+, in full autonomy). And finally i really love my family and my 3 beautiful daughters that support me all day long.

apijsonparamconvertercomponent's People

Contributors

fossabot avatar rebolon avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

fossabot

apijsonparamconvertercomponent's Issues

Should i manage Update operation ?

For instance, only Insert operation are allowed. Why ?
Because the ParamConverter is only allowed to restore valid Entities. And it considers that if there is an identifier property (id by default), it must retreive the real entity from database.
So it cuts all other fields and use database information.

But there is 2 problems:

  • ParamConverter should not take care at data consistency except rules defined in Specific ParamConverter (fields name, related converter...). If a user send data with id, ParamConverter should restore a valid entity with all information provided on HTTP call
  • If we send ID on the root element, ParamConverter will not take care at anything else but the ID, so it will just retreive the main Entity from database and return it to the Controller.

The question would be: what is the expected behavior ?
should we provide different ParamConverter ? one for Insert, one for Update ?
when there is ID, should we retreive from database, and then apply modification from json ? but in that case for all properties undefined in Json, should we set them to null in retreived Entity ? and for properties that are list of entities (for the repsresentation of associative table) should we remove existing entries and add those defined in Json ? Because when we retreive information from database, don't forget that Doctrine will manage relations so it might add new relations

root node in json should not be mandatory

For instance for a Book i must have a root book node like this:

{ 
  book: {
    ...
  }
}

This is useless and so it should be optional ! (ApiPlatform with Denormalizer doesn't need this root node)

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.