VIVO Documentation
Page History
...
For more on the motivation and design philosophy behind the Data Distribution API, see Data Distribution motivation
Hello, World
As a first example, we create an API that can be called to return the text "Hello, World" – not very useful, but shows the basic mechanism for creating and using an API based on a configuration file.
First, create a Turtle format file in vivo.home/rdf/display/everytime (you may name the file naything you like) containing the following:
Code Block |
---|
@prefix : <http://vitro.mannlib.cornell.edu/ns/vitro/ApplicationSetup#> . :data_distributor_hello a <java:edu.cornell.library.scholars.webapp.controller.api.distribute.DataDistributor> , <java:edu.cornell.library.scholars.webapp.controller.api.distribute.examples.HelloDistributor> ; :actionName "hello" . |
...
Overview
Content Tools