require File.join(File.dirname(__FILE__), 'endpoint_initializer') module Jangle class WelcomeEndpoint include EndpointInitializer def serve(request) body = '
Welcome
' + "
This doesn't do a whole lot yet, other than proxy to a Platform store
" + "But you could try this (query service) - which does some hostname rewriting
" + "or this (query for "claudine" on the facets service)" +
" - which does some transparent querystring parameter appending
" +
"(note that top, fields and output parameters are set, " +
"and only query needs to be passed in)" +
"
or this - which proxies to the Platform SPARQL service, but rewrites URLs in the response
" response = Rack::Response.new(body) response['Content-Type'] = "text/html" response end end end