Skip to content

Commit

Permalink
Deprecated POST /case/assets/update/{identifier} in favor of /api/v2/…
Browse files Browse the repository at this point in the history
…cases/{case_identifier}/assets/{identifier}
  • Loading branch information
c8y3 committed Jan 31, 2025
1 parent 43a3162 commit 7ed34e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/app/blueprints/rest/case/case_assets_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def case_assets_state(caseid):


@case_assets_rest_blueprint.route('/case/assets/add', methods=['POST'])
@endpoint_deprecated('POST', '/api/v2/cases/<int:caseid>/assets')
@endpoint_deprecated('POST', '/api/v2/cases/<int:case_identifier>/assets')
@ac_requires_case_identifier(CaseAccessLevel.full_access)
@ac_api_requires()
def deprecated_add_asset(caseid):
Expand Down Expand Up @@ -283,6 +283,7 @@ def deprecated_asset_view(cur_id, caseid):


@case_assets_rest_blueprint.route('/case/assets/update/<int:cur_id>', methods=['POST'])
@endpoint_deprecated('PUT', '/api/v2/cases/<int:case_identifier>/assets/<int:identifier>')
@ac_requires_case_identifier(CaseAccessLevel.full_access)
@ac_api_requires()
def asset_update(cur_id, caseid):
Expand All @@ -301,7 +302,7 @@ def asset_update(cur_id, caseid):


@case_assets_rest_blueprint.route('/case/assets/delete/<int:cur_id>', methods=['POST'])
@endpoint_deprecated('DELETE', '/api/v2/cases/<case_identifier>/assets/<int:cur_id>')
@endpoint_deprecated('DELETE', '/api/v2/cases/<int:case_identifier>/assets/<int:cur_id>')
@ac_requires_case_identifier(CaseAccessLevel.full_access)
@ac_api_requires()
def deprecated_asset_delete(cur_id, caseid):
Expand Down

0 comments on commit 7ed34e3

Please sign in to comment.