Open-EO / openeo-web-editor

An interactive and easy to use web-based editor for the OpenEO API.
https://editor.openeo.org
Apache License 2.0
12 stars 17 forks source link

Integrate Hub into Web Editor #25

Open m-mohr opened 5 years ago

m-mohr commented 5 years ago

When selecting a server it would be great if you could get a list of potential back-ends from the Hub!

Maybe also add a feature to search for an alternative back-end based on the loaded process graph.

m-mohr commented 5 years ago

@christophfriedrich Is there a public API I could query against?

christophfriedrich commented 5 years ago

Yes, the Hub exposes a public API. The Hub's frontend itself queries its data from that API!

There is no documentation of that API (yet), but the endpoints are defined in the Hub's server.js file if you want to have a look (search for server.get and server.post).

In short, if you just want a list of the backends: GET http://hub.openeo.org/backends :tipping_hand_man:

christophfriedrich commented 5 years ago

The Hub now "officially" exposes four public endpoints, see its README for information/documentation.

m-mohr commented 5 years ago

Process graphs are now part of the Web Editor, server selection is still a todo.

m-mohr commented 3 years ago

The Hub will likely only be a back-end filter and not a sharing platform for processes or UDFs anytime soon. So the only place where I can add something is the "server selection" at the beginning (i.e. where we already have the list of servers stored locally). I'm thinking about using vue-multiselect and replace the modal to select the server so that users can search for servers and pick them directly with the two data sources (1) locally and (2) Hub.

christophfriedrich commented 3 years ago

https://github.com/Open-EO/openeo-web-editor/pull/199#discussion_r701857220

By the way, I'm planning to replace this [the server URL history list] with a vue-multiselect where you can search through previously connected servers and the Hub...

When this is done remember to adapt the help text too

m-mohr commented 2 years ago

In short, if you just want a list of the backends: GET http://hub.openeo.org/backends 💁‍♂️

@christophfriedrich I guess this has been updated? Where can I find it now? I only get an error right now:

{
"code": "ResourceNotFound",
"message": "/backends; caused by Error: ENOENT: no such file or directory, stat 'dist/backends'"
}