public interface WebService
A service accepts a JSON object as input and produces a JSON object as output. The JSON objects must use the LAPPS Interchange Format (LIF) with the discriminator set to one of the LAPPS URI.
See http://vocab.lappsgrid.org/discriminators.html for a list of all URI used by LAPPS services.
Modifier and Type | Method and Description |
---|---|
String |
execute(String input)
Entry point for a Lappsgrid service.
|
String |
getMetadata()
Returns a JSON string containing metadata describing the service.
|
String execute(String input)
Each service on the Lappsgrid will accept org.lappsgrid.serialization.Data
object
and return a Data
object with a org.lappsgrid.serialization.lif.Container
payload.
Errors and exceptions the occur during processing should be wrapped in a Data
object with the discriminator set to http://vocab.lappsgrid.org/ns/error
input
- A JSON string representing a Data objectString getMetadata()
Copyright © 2013–2016 The Language Application Grid. All rights reserved.