Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3826

Use an HandlerMethodArgumentResolver to create the Patch object

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      0
    • Documentation Status:
      Not Required

      Description

      From the discussion in the PR https://github.com/DSpace/DSpace/pull/1929

       
      Tom Desair We might want to move the conversion from a JSON request body to a Patch object to a custom HandlerMethodArgumentResolver (like we did with the SearchFilterResolver) so that Spring can directly inject Patch objects as a method parameter. But this can be postponed to another ticket.
       
       Luigi Andrea Pascarelli (4Science) Yes, it is better to postpone that. Honestly I'm not sure if the JSON Patch will be the only standard to support in DSpace 7.x (JSON Merge Patch is the other standard), so probably the best choice is to postpone
       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            bollini Andrea Bollini (4Science)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: