Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Django REST framework
Django REST framework

814
568
+ 1
261
Swagger UI
Swagger UI

943
539
+ 1
136
Add tool

Django REST framework vs Swagger UI: What are the differences?

Developers describe Django REST framework as "Web APIs for Django". Django REST framework is a powerful and flexible toolkit that makes it easy to build Web APIs. On the other hand, Swagger UI is detailed as "dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation". Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation and sandbox from a Swagger-compliant API.

Django REST framework belongs to "Microframeworks (Backend)" category of the tech stack, while Swagger UI can be primarily classified under "Documentation as a Service & Tools".

"Browsable api" is the primary reason why developers consider Django REST framework over the competitors, whereas "Open Source" was stated as the key factor in picking Swagger UI.

Django REST framework is an open source tool with 14.7K GitHub stars and 4.33K GitHub forks. Here's a link to Django REST framework's open source repository on GitHub.

According to the StackShare community, Swagger UI has a broader approval, being mentioned in 205 company stacks & 107 developers stacks; compared to Django REST framework, which is listed in 159 company stacks and 79 developer stacks.

What is Django REST framework?

It is a powerful and flexible toolkit that makes it easy to build Web APIs.

What is Swagger UI?

Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation and sandbox from a Swagger-compliant API
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Django REST framework?
Why do developers choose Swagger UI?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con
    What companies use Django REST framework?
    What companies use Swagger UI?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Django REST framework?
    What tools integrate with Swagger UI?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Django REST framework and Swagger UI?
    Django
    Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
    Flask
    Flask is intended for getting started very quickly and was developed with best intentions in mind.
    Tastypie
    Tastypie is a webservice API framework for Django. It provides a convenient, yet powerful and highly customizable abstraction for creating REST-style interfaces.
    Graphene
    Graphene is a Python library for building GraphQL schemas/types fast and easily.
    Spring Boot
    Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.
    See all alternatives
    Decisions about Django REST framework and Swagger UI
    Tim Abbott
    Tim Abbott
    Founder at Zulip · | 8 upvotes · 39.4K views
    atZulipZulip
    Django
    Django
    Django REST framework
    Django REST framework

    Zulip has been powered by Django since the very early days of its development with Django 1.4, back in 2012. As a reasonably mature web application with significant scale, we're at the stage in many companies' development where one starts to rip out more and more of the web framework to optimize things or just make them work the way we want. (E.g. while I was at Dropbox in early 2016, we discovered we only had about 600 lines of code left from the original Pylons framework that actually ran).

    One of the things that has been really fantastic about Django is that we're still happily using it for the vast majority of code in the project, and every time Django comes out with a new release, I read the changelog and get excited about several improvements that actually make my life better. While Django has made some design decisions that I don't agree with (e.g. I'm not a fan of Django REST framework, and think it makes life more difficult), Django also makes it easy to do your own thing, which we've done to great effect (see the linked article for details on our has_request_variables framework).

    Overall I think we've gotten a ton of value out of Python and Django and would recommend it to anyone starting a new full-featured web application project today.

    See more
    Noah Zoschke
    Noah Zoschke
    Engineering Manager at Segment · | 29 upvotes · 204.6K views
    atSegmentSegment
    Postman
    Postman
    Markdown
    Markdown
    ReadMe.io
    ReadMe.io
    Swagger UI
    Swagger UI
    #Documentation
    #Api
    #QA

    We just launched the Segment Config API (try it out for yourself here) — a set of public REST APIs that enable you to manage your Segment configuration. A public API is only as good as its #documentation. For the API reference doc we are using Postman.

    Postman is an “API development environment”. You download the desktop app, and build API requests by URL and payload. Over time you can build up a set of requests and organize them into a “Postman Collection”. You can generalize a collection with “collection variables”. This allows you to parameterize things like username, password and workspace_name so a user can fill their own values in before making an API call. This makes it possible to use Postman for one-off API tasks instead of writing code.

    Then you can add Markdown content to the entire collection, a folder of related methods, and/or every API method to explain how the APIs work. You can publish a collection and easily share it with a URL.

    This turns Postman from a personal #API utility to full-blown public interactive API documentation. The result is a great looking web page with all the API calls, docs and sample requests and responses in one place. Check out the results here.

    Postman’s powers don’t end here. You can automate Postman with “test scripts” and have it periodically run a collection scripts as “monitors”. We now have #QA around all the APIs in public docs to make sure they are always correct

    Along the way we tried other techniques for documenting APIs like ReadMe.io or Swagger UI. These required a lot of effort to customize.

    Writing and maintaining a Postman collection takes some work, but the resulting documentation site, interactivity and API testing tools are well worth it.

    See more
    Tim Nolet
    Tim Nolet
    Founder, Engineer & Dishwasher at Checkly · | 7 upvotes · 59.9K views
    atChecklyHQChecklyHQ
    JavaScript
    JavaScript
    Node.js
    Node.js
    hapi
    hapi
    Vue.js
    Vue.js
    Swagger UI
    Swagger UI
    Slate
    Slate

    JavaScript Node.js hapi Vue.js Swagger UI Slate

    Two weeks ago we released the public API for Checkly. We already had an API that was serving our frontend Vue.js app. We decided to create an new set of API endpoints and not reuse the already existing one. The blog post linked below details what parts we needed to refactor, what parts we added and how we handled generating API documentation. More specifically, the post dives into:

    • Refactoring the existing Hapi.js based API
    • API key based authentication
    • Refactoring models with Objection.js
    • Validating plan limits
    • Generating Swagger & Slate based documentation
    See more
    Interest over time
    Reviews of Django REST framework and Swagger UI
    No reviews found
    How developers use Django REST framework and Swagger UI
    Avatar of Yaakov Gesher
    Yaakov Gesher uses Django REST frameworkDjango REST framework

    Django REST delivered all the content to the BI, making calls to the Postgres DB, aggregating numeric data, and automatically associating data models at the time of row creation.

    Avatar of Alec Cunningham
    Alec Cunningham uses Django REST frameworkDjango REST framework

    Instead of using Django for both back and frontend, I use DRF to layout an API that ReactJs can pull data from. Easy to setup, well documented, and works seamlessly with React.

    Avatar of Seungkwon Park
    Seungkwon Park uses Django REST frameworkDjango REST framework

    django에서 api를 만드는데 최고의 framework라고 생각합니다. 아직은 tutorial 수준의 class base view, function base view 수준으로 사용합니다.

    하지만 현재 진행중인 프로젝트의 심화로 REST framework를 심도있게 다룰 예정입니다.

    Avatar of Blair Gemmer
    Blair Gemmer uses Django REST frameworkDjango REST framework

    Really great framework for building RESTful APIs. Lots of plugins for it!

    Avatar of p009922
    p009922 uses Swagger UISwagger UI

    documentation tool for online docu on the REST-Services

    Avatar of TOMIS
    TOMIS uses Django REST frameworkDjango REST framework

    For our backend REST API

    Avatar of dotmos
    dotmos uses Swagger UISwagger UI

    Document our REST API.

    Avatar of Minyoung Kim
    Minyoung Kim uses Swagger UISwagger UI

    REST API 도큐먼트 관리

    How much does Django REST framework cost?
    How much does Swagger UI cost?
    Pricing unavailable
    Pricing unavailable
    News about Django REST framework
    More news
    News about Swagger UI
    More news