The search-conversion service transforms an SAP Help Portal Search API response into an SAP Conversational AI readable format.
To run the service locally, first either get it via go get
go get -u github.com/afritzler/search-conversion
or clone the repository.
git clone https://github.com/afritzler/search-conversion.git
cd search-conversion
Build the app via make
and start the service
cd search-conversion
make
./search-conversion
The service will be exposed via http://localhost:8080. The default port 8080 can be changed
by setting the PORT
environment variable.
export PORT=5000
./search-conversion
Adjust the examples/request.json
to your needs and run a curl
against either localhost
or your corresponding service URL.
curl -vX POST https://YOUR_SERVICE_URL/search -d @examples/request.json \
--header "Content-Type: application/json"
To deploy the service to a CloudFoundry environment
git clone https://github.com/afritzler/search-conversion.git
cd search-conversion
cf push
To deploy the service to the Google AppEngine
git clone https://github.com/afritzler/search-conversion.git
cd search-conversion
gcloud app deploy