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


+ 1

+ 1
Add tool

Postman vs drf-yasg: What are the differences?

Postman: Only complete API development environment. It is the only complete API development environment, used by nearly five million developers and more than 100,000 companies worldwide; drf-yasg: Automated generation of real Swagger/OpenAPI 2.0 schemas from Django REST Framework code. Generate real Swagger/OpenAPI 2.0 specifications from a Django Rest Framework API.

Postman and drf-yasg belong to "API Tools" category of the tech stack.

Some of the features offered by Postman are:

  • Compact layout
  • HTTP requests with file upload support
  • Formatted API responses for JSON and XML

On the other hand, drf-yasg provides the following key features:

  • full support for nested Serializers and Schemas
  • Response schemas and descriptions Model definitions compatible with codegen tools
  • Customization hooks at all points in the spec generation process

drf-yasg is an open source tool with 1.66K GitHub stars and 237 GitHub forks. Here's a link to drf-yasg's open source repository on GitHub.

Advice on drf-yasg and Postman
Needs advice
Swagger UISwagger UI

From a StackShare Community member: "I just started working for a start-up and we are in desperate need of better documentation for our API. Currently our API docs is in a file. We are evaluating Postman and Swagger UI. Since there are many options and I was wondering what other StackSharers would recommend?"

See more
Replies (3)
Jagdeep Singh
Tech Lead at · | 8 upvotes · 295K views

I use Postman because of the ease of team-management, using workspaces and teams, runner, collections, environment variables, test-scripts (post execution), variable management (pre and post execution), folders (inside collections, for better management of APIs), newman, easy-ci-integration (and probably a few more things that I am not able to recall right now).

See more

I use Swagger UI because it's an easy tool for end-consumers to visualize and test our APIs. It focuses on that ! And it's directly embedded and delivered with the APIs. Postman's built-in tools aren't bad, but their main focus isn't the documentation and also, they are hosted outside the project.

See more
Sadik Ay

I recommend Postman because it's easy to use with history option. Also, it has very great features like runner, collections, test scripts runners, defining environment variables and simple exporting and importing data.

See more
Decisions about drf-yasg and Postman
Stephen Fox
Artificial Intelligence Fellow · | 1 upvote · 262.9K views

Postman supports automation and organization in a way that Insomnia just doesn't. Admittedly, Insomnia makes it slightly easy to query the data that you get back (in a very MongoDB-esque query language) but Postman sets you up to develop the code that you would use in development/testing right in the editor.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of drf-yasg
Pros of Postman
    Be the first to leave a pro
    • 488
      Easy to use
    • 369
      Great tool
    • 274
      Makes developing rest api's easy peasy
    • 155
      Easy setup, looks good
    • 143
      The best api workflow out there
    • 53
      It's the best
    • 53
      History feature
    • 44
      Adds real value to my workflow
    • 42
      Great interface that magically predicts your needs
    • 34
      The best in class app
    • 11
      Can save and share script
    • 9
      Fully featured without looking cluttered
    • 7
    • 7
      Option to run scrips
    • 7
      Global/Environment Variables
    • 6
      Dead simple and useful. Excellent
    • 6
      Shareable Collections
    • 6
      Dark theme easy on the eyes
    • 5
      Awesome customer support
    • 5
      Great integration with newman
    • 4
    • 4
      The test script is useful
    • 4
    • 3
      Easy as pie
    • 3
      Saves responses
    • 3
      Makes testing API's as easy as 1,2,3
    • 3
      This has simplified my testing significantly
    • 2
    • 2
      I'd recommend it to everyone who works with apis
    • 2
      Mocking API calls with predefined response
    • 1
      Easy to setup, test and provides test storage
    • 1
    • 1
      Postman Runner CI Integration
    • 1
      Now supports GraphQL
    • 1
      Continuous integration using newman
    • 1
      Pre-request Script and Test attributes are invaluable
    • 0
      <a href="">useful tool</a>
    • 0

    Sign up to add or upvote prosMake informed product decisions

    Cons of drf-yasg
    Cons of Postman
      Be the first to leave a con
      • 9
        Stores credentials in HTTP
      • 8
        Bloated features and UI
      • 8
        Cumbersome to switch authentication tokens
      • 7
        Poor GraphQL support
      • 5
      • 3
        Not free after 5 users
      • 3
        Can't prompt for per-request variables
      • 1
        Import swagger
      • 1
        Import curl
      • 1
        Support websocket

      Sign up to add or upvote consMake informed product decisions

      - No public GitHub repository available -

      What is drf-yasg?

      Generate real Swagger/OpenAPI 2.0 specifications from a Django Rest Framework API.

      What is Postman?

      It is the only complete API development environment, used by nearly five million developers and more than 100,000 companies worldwide.

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

      What companies use drf-yasg?
      What companies use Postman?
      See which teams inside your own company are using drf-yasg or Postman.
      Sign up for StackShare EnterpriseLearn More

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

      What tools integrate with drf-yasg?
      What tools integrate with Postman?

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

      What are some alternatives to drf-yasg and Postman?
      Amazon API Gateway
      Amazon API Gateway handles all the tasks involved in accepting and processing up to hundreds of thousands of concurrent API calls, including traffic management, authorization and access control, monitoring, and API version management.
      Insomnia REST Client
      Insomnia is a powerful REST API Client with cookie management, environment variables, code generation, and authentication for Mac, Window, and Linux.
      It is a publicly available application programming interface that provides developers with programmatic access to a proprietary software application or web service.
      OpenAPI Specification
      It defines a standard, language-agnostic interface to RESTful APIs which allows both humans and computers to discover and understand the capabilities of the service without access to source code, documentation, or through network traffic inspection.
      Paw is a full-featured and beautifully designed Mac app that makes interaction with REST services delightful. Either you are an API maker or consumer, Paw helps you build HTTP requests, inspect the server's response and even generate client code.
      See all alternatives