Skip to content

Fix endpoints #603

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

Merged
merged 1 commit into from
Aug 6, 2025
Merged

Fix endpoints #603

merged 1 commit into from
Aug 6, 2025

Conversation

TheauW
Copy link
Contributor

@TheauW TheauW commented Jul 21, 2025

I updated some endpoints to use the request body instead of passing parameters in the URL.
This avoids having excessively long URLs.

I also improved the FastAPI documentation:

  • Added descriptions for the endpoints.
  • Added working examples, including examples that show all possible parameters.

I also revised the logic of the function that edits job attributes and parameters.
In the previous implementation, it was not possible to update a field that is both an attribute and a parameter (such as Status or JobType).

I have now defined a strict type for the metadata endpoint to prevent incorrect usage.

Resolves: #585

@TheauW TheauW force-pushed the twartel-fix-endpoints branch from 17180b4 to b13adb8 Compare August 6, 2025 12:11
@aldbr aldbr force-pushed the twartel-fix-endpoints branch from b13adb8 to 46d54fe Compare August 6, 2025 12:14
@aldbr aldbr enabled auto-merge August 6, 2025 12:19
@aldbr aldbr merged commit 325d67b into DIRACGrid:main Aug 6, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Why do we use job_ids as Query and not as Body?
3 participants