What's the best way to implement update deeply nested JSON structure with Spring Data REST?

Aleksandr

I have many related resources with exported repositories on the backend (Spring Data REST). My client loads "root" resource with GET and then lazy-loads related resources through "_links" properties. Then client can modify some resources in the loaded graph.

I want to implement service, which will take json with all lazy-loaded resources and update modified resources with version-checking (optimistic) at once.

What's the best way to implement this? Is this approach a bad practice?

StanislavL

Sounds as a good place for graphql.com

It allows to get all of the data you need, in one request. You can define API and call queries requesting only necessary part of data.

It supports customized updates as well.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

What is the best data structure to implement a queue?

From Dev

What's the best way to convert pojo to JSON in Spring

From Dev

What's the best way to implement a semaphore in Go

From Dev

What's the best way to implement rubi in SVG

From Dev

What is the best way to convert structure to Json?

From Dev

What is the best way to convert structure to Json?

From Dev

What's the best way to design this structure in c?

From Dev

What's the best way to expose this data via JSON/Web Service?

From Dev

What's the best way to mutate a nested enum?

From Dev

Cannot Subscript Error on Deeply Nested Data Structure

From Dev

How to find an element in deeply nested data structure?

From Dev

What's the best way to parallelize a REST call?

From Dev

What would be the best way to implement REST like URLs in a Seaside application?

From Dev

What is the best way to implement roles and permission in Express REST Api

From Dev

What's the best way to update xml in a file?

From Dev

is there a way to search for deeply nested json in activerecord with postgres?

From Dev

What is the best way to design REST URI for nested resources

From Dev

What's the best way to close the Spring Applicationcontext?

From Dev

What is the best way to implement custom validation in spring application?

From Dev

What's the best way to manipulate data in NodeJS?

From Dev

datatable and ajax where the json data is deeply nested

From Dev

What's the best way to implement a string buffer in Rust?

From Dev

What's the best way to implement caching behavior for the app using RestKit

From Dev

What's the best way to store data offline and update it when app goes online

From Dev

What is the best way to pass data in a hierarchical structure? Swift

From Dev

What is the best way of having a data structure that manages several services?

From Dev

What is the best way to create byte data structure not fixed size in JAVA

From Dev

What is the best practice to get related/nested data from REST API?

From Dev

What's the best way to skip giving the full namespace reference to a structure?

Related Related

  1. 1

    What is the best data structure to implement a queue?

  2. 2

    What's the best way to convert pojo to JSON in Spring

  3. 3

    What's the best way to implement a semaphore in Go

  4. 4

    What's the best way to implement rubi in SVG

  5. 5

    What is the best way to convert structure to Json?

  6. 6

    What is the best way to convert structure to Json?

  7. 7

    What's the best way to design this structure in c?

  8. 8

    What's the best way to expose this data via JSON/Web Service?

  9. 9

    What's the best way to mutate a nested enum?

  10. 10

    Cannot Subscript Error on Deeply Nested Data Structure

  11. 11

    How to find an element in deeply nested data structure?

  12. 12

    What's the best way to parallelize a REST call?

  13. 13

    What would be the best way to implement REST like URLs in a Seaside application?

  14. 14

    What is the best way to implement roles and permission in Express REST Api

  15. 15

    What's the best way to update xml in a file?

  16. 16

    is there a way to search for deeply nested json in activerecord with postgres?

  17. 17

    What is the best way to design REST URI for nested resources

  18. 18

    What's the best way to close the Spring Applicationcontext?

  19. 19

    What is the best way to implement custom validation in spring application?

  20. 20

    What's the best way to manipulate data in NodeJS?

  21. 21

    datatable and ajax where the json data is deeply nested

  22. 22

    What's the best way to implement a string buffer in Rust?

  23. 23

    What's the best way to implement caching behavior for the app using RestKit

  24. 24

    What's the best way to store data offline and update it when app goes online

  25. 25

    What is the best way to pass data in a hierarchical structure? Swift

  26. 26

    What is the best way of having a data structure that manages several services?

  27. 27

    What is the best way to create byte data structure not fixed size in JAVA

  28. 28

    What is the best practice to get related/nested data from REST API?

  29. 29

    What's the best way to skip giving the full namespace reference to a structure?

HotTag

Archive