Nemo11235 / SmartGameSearch

try to connect chat gpt api to website
0 stars 1 forks source link

Alfredh backend updates #13

Closed AlfredAria closed 6 months ago

AlfredAria commented 6 months ago

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.