MCPcopy Create free account
hub / github.com/YashMarmat/FullStack_Ecommerce_App / get

Method get

backend/account/views.py:152–157  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

150class UserAddressesListView(APIView):
151
152 def get(self, request):
153 user = request.user
154 user_address = BillingAddress.objects.filter(user=user)
155 serializer = BillingAddressSerializer(user_address, many=True)
156
157 return Response(serializer.data, status=status.HTTP_200_OK)
158
159
160# get specific address only

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected