Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1007 Bytes

examples.md

File metadata and controls

42 lines (33 loc) · 1007 Bytes

resolver examples

HTTP requests

  1. Set these environment variable values:

    export GIT_ACCOUNT=senzing
    export GIT_REPOSITORY=resolver
    export GIT_ACCOUNT_DIR=~/${GIT_ACCOUNT}.git
    export GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}"
  2. Test HTTP API. Example:

    curl -X POST \
      --header "Content-Type: text/plain" \
      --data-binary @${GIT_REPOSITORY_DIR}/test/test-data-1.json \
      http://localhost:8252/resolve
  3. Test HTTP API with JSON. Example:

    curl -X POST \
      --header "Content-Type: text/plain" \
      --data-binary @${GIT_REPOSITORY_DIR}/test/test-data-1.json \
      http://localhost:8252/resolve?withJson=true
  4. Test HTTP API with Features. Example:

    curl -X POST \
      --header "Content-Type: text/plain" \
      --data-binary @${GIT_REPOSITORY_DIR}/test/test-data-1.json \
      http://localhost:8252/resolve?withFeatures=true