Skip to content

Commit

Permalink
chore: Fix Delete Decision Environment response type (#431)
Browse files Browse the repository at this point in the history
  * Add response types to Delete DE endpoint in dictionary format
  • Loading branch information
Dostonbek1 authored Oct 4, 2023
1 parent b9e44b1 commit 66ec291
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/aap_eda/api/views/decision_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,14 @@ def retrieve(self, request, pk):

@extend_schema(
description="Delete a decision environment by id",
responses=status.HTTP_204_NO_CONTENT,
responses={
status.HTTP_204_NO_CONTENT: OpenApiResponse(
None, description="Delete successful."
),
status.HTTP_403_FORBIDDEN: OpenApiResponse(
None, description="Decision Environment in use by Activations."
),
},
parameters=[
OpenApiParameter(
name="force",
Expand Down

0 comments on commit 66ec291

Please sign in to comment.