senzing-garage / senzing-api-server

Server of Senzing REST API.
Apache License 2.0
7 stars 2 forks source link

7313E|A non-empty value for [DSRC_CODE] must be specified. #448

Open docktermj opened 1 year ago

docktermj commented 1 year ago

To recreate:

export SENZING_DEMO_DIR=~/my-senzing
rm -rf ${SENZING_DEMO_DIR:-/tmp/nowhere/for/safety}
export PGADMIN_DIR=${SENZING_DEMO_DIR}/pgadmin
export POSTGRES_DIR=${SENZING_DEMO_DIR}/postgres
export RABBITMQ_DIR=${SENZING_DEMO_DIR}/rabbitmq
export SENZING_GID=$(id -g)
export SENZING_UID=$(id -u)
export SENZING_VAR_DIR=${SENZING_DEMO_DIR}/var
mkdir -p ${PGADMIN_DIR} ${POSTGRES_DIR} ${RABBITMQ_DIR} ${SENZING_VAR_DIR}
chmod -R 777 ${SENZING_DEMO_DIR}
curl -X GET \
    --output ${SENZING_DEMO_DIR}/docker-versions-stable.sh \
    https://raw.githubusercontent.com/Senzing/knowledge-base/main/lists/docker-versions-stable.sh
source ${SENZING_DEMO_DIR}/docker-versions-stable.sh   
curl -X GET \
    --output ${SENZING_DEMO_DIR}/docker-compose.yaml \
    "https://raw.githubusercontent.com/Senzing/docker-compose-demo/main/resources/postgresql/docker-compose-rabbitmq-postgresql-api-server.yaml"    
cd ${SENZING_DEMO_DIR}
sudo --preserve-env docker-compose up

Once the docker-compose formation is up, run the following in a separate terminal

curl -X 'POST' \
  'http://localhost:8250/data-sources?dataSource=BOB707&withRaw=false' \
  -H 'accept: application/json; charset=UTF-8' \
  -H 'Content-Type: application/json; charset=UTF-8' \
  -d '""' | jq