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

[FR] REST API v2.1.0 first iocs endpoints #503

Open
Elise17 opened this issue Jun 25, 2024 · 1 comment · Fixed by #545
Open

[FR] REST API v2.1.0 first iocs endpoints #503

Elise17 opened this issue Jun 25, 2024 · 1 comment · Fixed by #545
Assignees
Labels
enhancement New feature or request

Comments

@Elise17
Copy link
Contributor

Elise17 commented Jun 25, 2024

This issue is about the implementation of the first iocs endpoints.

  • POST /api/v2/cases/{identifier}/iocs
  • GET /api/v2/iocs/{identifier}
  • DEL /api/v2/iocs/{identifier}

For each endpoint, the tasks are the following:

  • document the new API in the openapi documentation
  • implement automatic tests+code
  • deprecate the previous endpoints
  • replace the previous endpoints with the new ones in the web interface

This are the previous endpoints which will be deprecated by these:

In case_ioc_routes.py :

  • url : /case/ioc/add (old url) => POST /api/v2/cases/{identifier}/iocs
  • url : /case/ioc/{ioc_id} (old url) => GET /api/v2/iocs/{identifier}
  • url : /case/ioc/state (old url) => GET /api/v2/iocs/{identifier}
  • url : /case/ioc/delete/{ioc_id} (old url) => DEL api/v2/iocs/{identifier}
@Elise17 Elise17 added the enhancement New feature or request label Jun 25, 2024
@Elise17
Copy link
Contributor Author

Elise17 commented Jul 3, 2024

It seems that the endpoints to be deprecated are used in the following files for the IHM:

  • /case/ioc/delete/{ioc_id} and /case/ioc/add source/app/static/assets/js/iris/case.ioc.js

@c8y3 c8y3 mentioned this issue Jul 23, 2024
@c8y3 c8y3 linked a pull request Jul 23, 2024 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