Add note to documentation incorrect about case of filter fields in api #319

Closed
opened 2025-11-01 20:53:46 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @bthornton191 on GitHub (Nov 27, 2024).

Description

The documentation at https://vikunja.io/docs/filters has everything in camel case. But the api returns everything in snake. Maybe I should have known, but a note in the docs would have saved me some time time and headache. 🙏

That section of the docs is correct for the front end, but the api ref links to it. The api ref might be the a good place to note the discrepancy.

>>> url = 'https://***************/api/v1/projects/2/tasks'
>>> response = requests.get(url, headers=headers)
>>> for k in response.json()[0]:
>>>    print(k) 
id
title
description
done
done_at
due_date
reminders
project_id
repeat_after
repeat_mode
priority
start_date
end_date
assignees
labels
hex_color
percent_done
identifier
index
related_tasks
attachments
cover_image_attachment_id
is_favorite
created
updated
bucket_id
position
reactions
created_by

Vikunja Version

0.24.4

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

Please select

Screenshots

image

Originally created by @bthornton191 on GitHub (Nov 27, 2024). ### Description The documentation at https://vikunja.io/docs/filters has everything in camel case. But the api returns everything in snake. Maybe I should have known, but a note in the docs would have saved me some time time and headache. 🙏 That section of the docs is correct for the front end, but the api ref links to it. The api ref might be the a good place to note the discrepancy. ```python >>> url = 'https://***************/api/v1/projects/2/tasks' >>> response = requests.get(url, headers=headers) >>> for k in response.json()[0]: >>> print(k) id title description done done_at due_date reminders project_id repeat_after repeat_mode priority start_date end_date assignees labels hex_color percent_done identifier index related_tasks attachments cover_image_attachment_id is_favorite created updated bucket_id position reactions created_by ``` ### Vikunja Version 0.24.4 ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? Please select ### Screenshots ![image](https://github.com/user-attachments/assets/86192833-818d-40cb-8c52-bdb76b2af1ca)
Author
Owner

@kolaente commented on GitHub (Dec 4, 2024):

Thanks for the report! This is now fixed (might take a while until visible on the website).

@kolaente commented on GitHub (Dec 4, 2024): Thanks for the report! This is now fixed (might take a while until visible on the website).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#319