Skip to content

Sdk 1988 go add support for fetching session configuration #315

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

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

mehmet-yoti
Copy link
Contributor

No description provided.

@mehmet-yoti mehmet-yoti requested a review from saurabh-yoti May 9, 2025 14:05
@saurabh-yoti saurabh-yoti requested a review from Copilot May 14, 2025 11:18
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces support for fetching the session configuration for Doc Scan (IDV) sessions. It adds new configuration types and accessor methods, a client method to retrieve session configuration via a GET endpoint, and corresponding example routes and handlers.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
docscan/config/config_retrieve.go Introduced types and getters for session configuration information.
docscan/client.go Added a client method to fetch session configuration from the API endpoint.
_examples/idv/routes.go Added a new route for session configuration retrieval in the example app.
_examples/idv/handlers.session.go Implemented a handler to process session configuration retrieval requests.
Comments suppressed due to low confidence (1)

_examples/idv/handlers.session.go:235

  • [nitpick] For consistency with common naming conventions, consider using a lowercase query parameter (e.g., 'session_id') to ensure uniformity across the API.
sessionID := c.Query("SessionID") // Get the SessionID from the query parameters

@saurabh-yoti
Copy link

Quality gate has failed. Please check code coverage.

@@ -291,3 +292,40 @@ func marshalJSON(jsonMarshaler jsonMarshaler, v interface{}) ([]byte, error) {
}
return json.Marshal(v)
}

const getSessionConfigurationPath = "/sessions/%s/configuration"

Choose a reason for hiding this comment

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

Please move this to docscan/endpoint.go for consistency.

Copy link

@saurabh-yoti saurabh-yoti May 14, 2025

Choose a reason for hiding this comment

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

We need to add filters for returning Document, Liveness and Face capture resource requirements similar to the Node SDK.

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.

3 participants