dyne / restroom-mw

🛠 Easy REST API builder executing Zencode
https://restroom.dyne.org
GNU Affero General Public License v3.0
3 stars 11 forks source link

Storing multiple object in Sawroom #41

Closed andrea-dintino closed 3 years ago

andrea-dintino commented 3 years ago

In a situation where I have this data:

{
   "Alice": {
      "keypair": {
         "private_key": "bPPTAa32iZryENRmRC8UiHslfxxSD8JOPNVx6z2pO1I=",
         "public_key": "BB5pxLmnLBNF9NeEpZrERxf7Vk9XE768iJv/OGn/FuR04bzccVylRrZbac5TwqLfZotVPKctuUAfdaohmudXhpY="
      }
   }, 

"myString": "Hello World!",
"myNumber": 35
}

I need to be able to execut:

Then I ask Sawroom to store the data named 'Alice' into the tag 'myTag'
Then I ask Sawroom to store the data named 'myString' into the tag 'myTag'
Then I ask Sawroom to store the data named 'myNumber' into the tag 'myTag'

When later executing:

Given I read from Sawroom the data in tag 'myTag' and save the output into 'sawroom'

I will receive as output the exact same data