search-conversion

command module
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

search-conversion

The search-conversion service transforms an SAP Help Portal Search API response into an SAP Conversational AI readable format.

Installation

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

Usage

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"

Deploy to CloudFoundry

To deploy the service to a CloudFoundry environment

git clone https://github.com/afritzler/search-conversion.git
cd search-conversion
cf push

Deploy to Google AppEngine

To deploy the service to the Google AppEngine

git clone https://github.com/afritzler/search-conversion.git
cd search-conversion
gcloud app deploy

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL