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

Method projects

api/organisations/views.py:150–153  ·  view source on GitHub ↗
(self, request, pk)

Source from the content-addressed store, hash-verified

148 )
149 @action(detail=True, permission_classes=[IsAuthenticated])
150 def projects(self, request, pk): # type: ignore[no-untyped-def]
151 organisation = self.get_object()
152 projects = organisation.projects.all()
153 return Response(ProjectListSerializer(projects, many=True).data)
154
155 @action(detail=True, methods=["POST"])
156 def invite(self, request, pk): # type: ignore[no-untyped-def]

Callers

nothing calls this directly

Calls 3

get_objectMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected