-
Notifications
You must be signed in to change notification settings - Fork 8
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
Modify queue/item/get endpoint to accept request parameters instead of body #64
Comments
I also get the same issue with endpoints for Console Output of RE Manager:
|
also there another problem with console_output endpoint, after some amount of lines in console its stopped update , so we get outdate data at some point |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
A GET request to queue/item/get should accept parameters based on an item uid or position, and return the corresponding plan.
Current Behavior
Parameters are not accepted by the fastAPI endpoint, instead it accepts a body (payload: dict {}) which can then include key value pairs for 'uid' or 'pos'. The issue with this method is that client side libraries for HTTP requests generally do not allow a body to be included in GET requests. GET requests typically include request parameters when needed.
Possible Solution
Modify the endpoint to accept request parameters for the uid and position.
Context
When using this endpoint from a client web app (Javascript), http request libraries like axios or even the built in fetch library are not able to include a body in GET requests, therefore the client is unable to correctly use the endpoint to retrieve information on specific plans.
Your Environment
Python 3.10.13
The text was updated successfully, but these errors were encountered: