Open m-mohr opened 5 years ago
@christophfriedrich Is there a public API I could query against?
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:
The Hub now "officially" exposes four public endpoints, see its README for information/documentation.
Process graphs are now part of the Web Editor, server selection is still a todo.
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.
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
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'"
}
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.