Closed AlfredAria closed 6 months ago
To test the new endpoint added in this backend change, you may use the curl Terminal command like this:
curl
curl http://localhost:3001/api/googlefanout -H "Content-Type: application/json" --data '{"text": "farm game"}'
The response JSON object is long, so you could dump it in to a local file, and even format it to become human readable using the python json.tool with python -m json.tool. This is how you can format the output in the console:
python -m json.tool
curl http://localhost:3001/api/googlefanout -H "Content-Type: application/json" --data '{"text": "farm game"}' | python -m json.tool
Or you may see example-google-fanout-response-formatted.json for the text content.
To test the new endpoint added in this backend change, you may use the
curl
Terminal command like this:curl http://localhost:3001/api/googlefanout -H "Content-Type: application/json" --data '{"text": "farm game"}'
The response JSON object is long, so you could dump it in to a local file, and even format it to become human readable using the python json.tool with
python -m json.tool
. This is how you can format the output in the console:curl http://localhost:3001/api/googlefanout -H "Content-Type: application/json" --data '{"text": "farm game"}' | python -m json.tool
Or you may see example-google-fanout-response-formatted.json for the text content.