Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Correct API endpoint and adjust localhost configuration (Resolves #346) #349

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

IndySeh
Copy link

@IndySeh IndySeh commented Nov 24, 2024

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

…ocalhost.

- Updated endpoint path from `foyle.logs.SessionsService/GetSession` to `api/GetSession`.
- Added a period after `jq` for proper JSON parsing.
- Replaced `https://` with `http://` for localhost to avoid unnecessary SSL complications.
Copy link
Contributor

@standard-input standard-input bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues flagged.
Standard Input can make mistakes. Check important info.

Copy link

netlify bot commented Nov 24, 2024

Deploy Preview for foyle ready!

Name Link
🔨 Latest commit 7b5e41d
🔍 Latest deploy log https://app.netlify.com/sites/foyle/deploys/67440b24f7f43500094621b0
😎 Deploy Preview https://deploy-preview-349--foyle.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jlewi
Copy link
Owner

jlewi commented Nov 25, 2024

Thank you so much for this; one minor suggestion.

@IndySeh
Copy link
Author

IndySeh commented Nov 25, 2024

Thanks for pointing that out! I’ll update the code

@jlewi jlewi enabled auto-merge (squash) November 26, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs for Get Session
2 participants