Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Correct API endpoint and adjust localhost configuration (Resolves …
…#346) (#349) ## Title fix: Correct API endpoint and adjust localhost configuration (Resolves #346) ## Description: This pull request addresses the following issues related to the API call and local development setup: • API Endpoint Fix: Updated the endpoint path from foyle.logs.SessionsService/GetSession to api/GetSession for proper routing. • jq Syntax Correction: Added a period (.) after jq to ensure JSON output is parsed and displayed correctly. • Protocol Adjustment: Replaced https:// with http:// for localhost to avoid unnecessary SSL complications during local testing. ### Before ``` CONTEXTID=01J7S3QZMS5F742JFPWZDCTVRG curl -s -X POST https://localhost:8877/foyle.logs.SessionsService/GetSession -H "Content-Type: application/json" -d "{\"contextId\": \"${CONTEXTID}\"}" | jq. ``` ### After ``` CONTEXTID=01J7S3QZMS5F742JFPWZDCTVRG curl -s -X POST http://localhost:8877/api/GetSession -H "Content-Type: application/json" -d "{\"contextId\": \"${CONTEXTID}\"}" | jq . ``` Closes Issue: #346 --------- Co-authored-by: Indy S <[email protected]>
- Loading branch information