Replies: 5 comments 3 replies
-
Looking in https://docs.eclipsestore.io/manual/storage/rest-interface/rest-api.html, it seems there is no api to get the root with all its instances. Looking, for example, at the source code
However, it also does not give me content of all instances stored within root. Which method do I need to get all the data? |
Beta Was this translation helpful? Give feedback.
-
Hi, There are no more APIs than the calls {"objectId":"1000000000000000028","typeId":"1000073","length":"11","variableLength":null,"simplified":false,"data":[],"references":null} I miss 11 values in the “Data” array. Maybe the java object is not correctly converted to json. Here is how a correct json response may look like: {"objectId":"1000000000000000028","typeId":"1000073","length":"2","variableLength":null,"simplified":false,"data":["1000000000000000029","235689"],"references":[{"objectId":"1000000000000000029","typeId":"43","length":"0","variableLength":["0"],"simplified":false,"data":[[]],"references":null}]}``` |
Beta Was this translation helpful? Give feedback.
-
Hi |
Beta Was this translation helpful? Give feedback.
-
Here is a list with the required parameter values:
|
Beta Was this translation helpful? Give feedback.
-
Oh, there is no simple API to get a json that supplies all information like seen in the screenshots. The App uses the modules storage-restclient and storage-restclient-jersey modules to process the data. Maybe you can also use those modules, or they might serve as example. One of the important things is that the data received by getObject needs to be combined with the type descriptions from the storage type-dictionary to be able to interpret an object’s data. |
Beta Was this translation helpful? Give feedback.
-
I have included all paths as described in microstream-one/microstream#549.
Using the following, I get the root with its objectId:
and after I get the root's objectId, I make a request to
"../object/1000000000000000028?references="true"
Then I get the following result:
{"objectId":"1000000000000000028","typeId":"1000073","length":"11","variableLength":null,"simplified":false,"data":[],"references":null}
However, I want to get all referencing data belonging to the root. The same result as when using the https://docs.eclipsestore.io/manual/storage/rest-interface/setup.html. What GET-Request should I do to get all the whole data belonging to the root.
Beta Was this translation helpful? Give feedback.
All reactions