Get rid of the outdated method of obtaining object parameters #66

Closed
opened 2025-12-28 18:14:02 +00:00 by sami · 1 comment
Owner

Originally created by @mike-petrov on GitHub (Dec 12, 2024).

I'm always frustrated when we use deprecated method in docs for getting object parameters:

image

Also this method unwraps header: x-attributes: {"FileName":"cat.jpg"} -> x-attribute-filename: cat.jpg and that's why the parameters are not displayed:

image

Describe the solution you'd like

Use new route: /objects/{containerId}/{objectId} -> /objects/{containerId}/by_id/{objectId}

Originally created by @mike-petrov on GitHub (Dec 12, 2024). ## Is your feature request related to a problem? Please describe. I'm always frustrated when we use deprecated method in [docs](https://rest.fs.neo.org/v1/docs/) for getting object parameters: <img width="500" alt="image" src="https://github.com/user-attachments/assets/e008d7a8-466e-4f9d-a975-1de830b6a5e5" /> Also this method unwraps header: `x-attributes: {"FileName":"cat.jpg"}` -> `x-attribute-filename: cat.jpg` and that's why the parameters are not displayed: <img width="700" alt="image" src="https://github.com/user-attachments/assets/a03337bb-cfc9-46eb-9c84-1422a4e5cc3f" /> ## Describe the solution you'd like Use new route: `/objects/{containerId}/{objectId}` -> `/objects/{containerId}/by_id/{objectId}`
sami 2025-12-28 18:14:02 +00:00
Author
Owner

@mike-petrov commented on GitHub (Apr 2, 2025):

The request is hidden behind nginx, so we need to fix it there. we need help @532910

@mike-petrov commented on GitHub (Apr 2, 2025): The [request](https://github.com/nspcc-dev/send-fs-neo-org/blob/master/src/Load.tsx#L29) is hidden behind [nginx](https://github.com/nspcc-dev/send-fs-neo-org?tab=readme-ov-file#nginx-config-example-on-the-production-server), so we need to fix it there. we need help @532910
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/send-fs-neo-org#66
No description provided.