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

Add session_id to dynamique session #359

Open
paulo-santos opened this issue Jan 27, 2025 · 0 comments
Open

Add session_id to dynamique session #359

paulo-santos opened this issue Jan 27, 2025 · 0 comments
Labels
API Item related to the API service feature request

Comments

@paulo-santos
Copy link

Purpose

Prevent duplicated sessions sent to qualicharge API.

Proposal

create a new endpoint PUT /dynamique/session/{session_id}

Details

When a request to the current endpoint POST /dynamique/session fails due to a request timeout, it is possible that the server still process and saves the request, but there is no way for the client to know if the request was successfully processed.
The client might retry the request later, which can create duplicated sessions.

Alternatively, the qualicharge API could keep the current endpoint, but add a unique index to id_pdc_itinerance + start to prevent duplicated data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Item related to the API service feature request
Projects
None yet
Development

No branches or pull requests

2 participants