MCPcopy
hub / github.com/Flagsmith/flagsmith / all

Method all

api/features/views.py:851–865  ·  view source on GitHub ↗
(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

849
850 @action(methods=["GET"], detail=False)
851 def all(self, request, *args, **kwargs): # type: ignore[no-untyped-def]
852 identity = get_object_or_404(Identity, pk=self.kwargs["identity_pk"])
853 feature_states = identity.get_all_feature_states()
854
855 serializer = IdentityAllFeatureStatesSerializer(
856 instance=feature_states,
857 many=True,
858 context={
859 "request": request,
860 "identity": identity,
861 "environment_api_key": identity.environment.api_key,
862 },
863 )
864
865 return Response(serializer.data)
866
867 @extend_schema(
868 request=IdentitySourceIdentityRequestSerializer(),

Callers 15

HOCClass · 0.45
account-store.jsFile · 0.45
project-store.jsFile · 0.45
createFlagFunction · 0.45
identity-store.jsFile · 0.45
transformChangeRequestFunction · 0.45
updateTagFunction · 0.45
deleteTagFunction · 0.45