-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: development
Are you sure you want to change the base?
Sdk 1988 go add support for fetching session configuration #315
Conversation
There was a problem hiding this 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
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" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
No description provided.