dfir-iris / iris-web

Collaborative Incident Response platform
GNU Lesser General Public License v3.0
1.08k stars 184 forks source link

[FR] REST API v2.1.0 first assets endpoints #556

Closed Elise17 closed 1 month ago

Elise17 commented 3 months ago

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

POST /api/v2/cases/{identifier}/assets
GET /api/v2/assets/{identifier}
DEL /api/v2/assets/{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_assets_routes.py :

url : /case/assets/add (old url) => POST /api/v2/cases/{identifier}/assets
url : /case/assets/{ioc_id} (old url) => GET /api/v2/assets/{identifier}
url : /case/assets/delete/{ioc_id} (old url) => DEL api/v2/assets/{identifier}