knowledgepixels / nanodash

A web client to browse and publish nanopublications.
GNU Affero General Public License v3.0
27 stars 2 forks source link

Add support for POST and new API to getPossibleValuesFromApi #26

Closed vemonet closed 4 years ago

vemonet commented 4 years ago

Improve getPossibleValuesFromApi:

Triggered only if searching for @id, uri and conceptid did not find anything

It will manage to resolve API returning the following JSON:

{
  "result1" : ["label 1", "label 2"], 
  "result2" : ["label 3", "label 4"]
}

Try it with the following template: http://localhost:37373/publish?1&template=http://purl.org/np/RAGEBhWnHEoCON2D539rwzyKDHwQjq8CeNOJo5e4fIL30

See it in action:

Screenshot from 2020-09-05 14-10-35