juno icon indicating copy to clipboard operation
juno copied to clipboard

feature request: expose JSON api for datastore

Open bytesun opened this issue 1 year ago • 4 comments

To be easier to fetch public data without initialize satellite, especially handle multiple satellites at same time.

https://[satelliteid]/API/[collection] => {json}

bytesun avatar Jun 30 '24 15:06 bytesun

That would be nice for public data. I wonder if that should be the default. Maybe as a first step, I can develop an example because that's possible using the Serverless Functions. I was also searching for ideas to start a weekly "Livestream code session on Juno." Maybe I can code during one of those sessions? Just thinking out loud.

peterpeterparker avatar Jul 01 '24 15:07 peterpeterparker

It will be great, looking forward to watch "Livestream code session on Juno."

bytesun avatar Jul 01 '24 15:07 bytesun

Cool let's do that!

peterpeterparker avatar Jul 01 '24 15:07 peterpeterparker

We have developed an example of how to solve this with Serverless Functions in Juno Live 1 and 2. The results are available in https://github.com/junobuild/examples/tree/main/rust/json

peterpeterparker avatar Jul 15 '24 13:07 peterpeterparker

I gonna close this task as we have implemented an example and showcased it in Juno Live.

If you think it should be part of the core, please ping me and we reopen the feature request.

Thanks for the idea! I literally gonna reuse part of the example in another sample app right now ;)

peterpeterparker avatar Sep 01 '24 08:09 peterpeterparker