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

API v2 get evidence #737

Open
9 tasks done
c8y3 opened this issue Mar 4, 2025 · 1 comment · Fixed by #749
Open
9 tasks done

API v2 get evidence #737

c8y3 opened this issue Mar 4, 2025 · 1 comment · Fixed by #749
Assignees
Labels
enhancement New feature or request

Comments

@c8y3
Copy link
Contributor

c8y3 commented Mar 4, 2025

Implement endpoint GET /api/v2/cases/{case_identifier}/evidences/{identifier} to get an evidence.

  • return 200 in case of success
  • return 404 when the case is not found
  • return 404 when the evidence is not found
  • return 403 when the user has no access to case
  • create method in the business layer
  • check returned object is uniform with other endpoints
  • deprecate GET /case/evidences/{evidence_id}
  • openapi: document endpoint
  • openapi: deprecate POST /case/evidences/{evidence_id}
@c8y3 c8y3 added the enhancement New feature or request label Mar 4, 2025
@c8y3 c8y3 self-assigned this Mar 4, 2025
@c8y3
Copy link
Contributor Author

c8y3 commented Mar 10, 2025

  • Fixed all warnings and activated ruff F841
  • Fixed all warnings and activated ruff F821

@c8y3 c8y3 linked a pull request Mar 12, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant