API Platform Conference 2023 - Ryan Weaver - Create the DTO system of your dreams

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 5

  • @Opengamer_ua
    @Opengamer_ua 11 місяців тому +3

    We did something quite similar in our project with API Platform 3 and the development process was very painful. Hopefully, we succeed with DTO / processor approach but it took much time to understand how it works with a lack of documentation.
    One of the weirdest things was that we had to expose entity resource and output DTO for this entity as a resource too (GET item only) to make it work.
    Then, to create the one resource from those two (dto and entity) you have to use the same shortName and uriTemplate to fix openapi schema
    I didn`t try stateOptions and it might solve this issue.
    But in general, it is very far from DTO system of "my dreams" :)

  • @techjunky9863
    @techjunky9863 3 місяці тому

    So do you put now the security annotations on the DTO in this case or still the entity cause this is what the Provider/Processor is calling?

  • @clementtalleu2534
    @clementtalleu2534 10 місяців тому

    Aussi passionnant que les sf casts !

  • @chris99935
    @chris99935 Місяць тому

    Forward to 2024, this is still not documented anywhere.

    • @AlexMerlin1985
      @AlexMerlin1985 3 дні тому

      Most (if not all) of it is in the 3 tutorials on SymfonyCasts. I learned this stuff from there, in lack of a better alternative.