Skip to content

Commit

Permalink
changed the response schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nruia-penn committed Oct 25, 2024
1 parent 617e23f commit c2488f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/courses/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,11 +467,12 @@ class FriendshipView(generics.ListAPIView):
"POST": {
201: "Friendship request created successfully.",
200: "Friendship request accepted successfully.",
404: "Username was None/ Username did not exist.",
409: "Friendship request already exists",
},
"DELETE": {
200: "Friendship rejected/deleted/cancelled successfully.",
404: "Friendship does not exist.",
404: "Friendship does not exist or Username does not exist.",
409: "Friendship request already rejected.",
},
}
Expand Down

0 comments on commit c2488f3

Please sign in to comment.