---
title: "Discussion on \"Generate OpenAPI from FastAPI and Django REST without decorating every view\" | Hashnode"
description: "Discussion on \"Generate OpenAPI from FastAPI and Django REST without decorating every view\". FastAPI puts contracts in annotations; Django REST puts them in serializers and viewsets. A static scanner can recover both without a running server, but the dynamic parts of DRF, external models, source mappings, and runtime choices, must be reported as gaps rather than turned i"
url: "https://hashnode.com/posts/generate-openapi-from-fastapi-django-rest/6aca07f53e7c879e1964597e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Generate OpenAPI from FastAPI and Django REST without decorating every view](https://blogs.powerduck.com/generate-openapi-from-fastapi-django-rest?utm_source=hashnode&utm_medium=feed)

FastAPI puts contracts in annotations; Django REST puts them in serializers and viewsets. A static scanner can recover both without a running server, but the dynamic parts of DRF, external models, source mappings, and runtime choices, must be reported as gaps rather than turned i

Oct 6 · 6 min read · blogs.powerduck.com  
Read the article

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#python](https://hashnode.com/tag/python)
-   [#fastapi](https://hashnode.com/tag/fastapi)
-   [#django](https://hashnode.com/tag/django)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
