MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / get_traits

Method get_traits

api/edge_api/identities/views.py:161–167  ·  view source on GitHub ↗
(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

159 )
160 @action(detail=True, methods=["get"], url_path="list-traits")
161 def get_traits(self, request, *args, **kwargs): # type: ignore[no-untyped-def]
162 edge_identity = self.get_object()
163 data = [
164 trait.dict()
165 for trait in edge_identity.engine_identity_model.identity_traits
166 ]
167 return Response(data=data, status=status.HTTP_200_OK)
168
169 @extend_schema(
170 request=EdgeIdentityTraitsSerializer,

Callers

nothing calls this directly

Calls 1

get_objectMethod · 0.95

Tested by

no test coverage detected