Closed Bishwas-py closed 7 months ago
Something of this syntax. And it could be able to apply pagination details in swagger/OpenAPI too.
@djapify @djapily_paginated(OffsetLimitPagination) def related_post(request, search_topic: str) -> {200: list[UserSchema], 401: ErrorMessage}: posts = Post.objects.filter(topic__icontains=search_topic) return 200, posts
the commit 3189b3f0e70ab9911f8722ad0a7f67a2d1dce77d added this.
How to add cursor pagination in my Djapy views. #10
Something of this syntax. And it could be able to apply pagination details in swagger/OpenAPI too.