web: add outpost list page

This commit is contained in:
Jens Langhammer
2021-02-08 19:04:19 +01:00
parent 5d460a2537
commit 820f658b49
8 changed files with 247 additions and 9 deletions

View File

@ -51,6 +51,13 @@ class OutpostViewSet(ModelViewSet):
queryset = Outpost.objects.all()
serializer_class = OutpostSerializer
filterset_fields = {
"providers": ["isnull"],
}
search_fields = [
"name",
"providers__name",
]
@swagger_auto_schema(responses={200: OutpostHealthSerializer(many=True)})
@action(methods=["GET"], detail=True)