noway - PUBLIC
  • DOCS FOR THINGS
  • _ref
    • Working Memory
    • NASA’s 10 rules for writing mission-critical code
    • React Native
  • _docs
    • Cryptography
    • Store APIs Key in FrontEnd SDK issues
    • APIs abuse issues
    • Webpack
    • Specific things
      • Text recognition
    • Book reviews
      • April 2020
      • 1-2/2020
      • March 2020
    • Visualization
    • MacOS
    • Go
    • Server
      • Easy way to setup a local HTTP Server on macOS
    • React
    • Reading
    • Tips
      • MVP
      • Sleeping in the right way
      • Get more things done
    • VS Code
      • Intelligent doesn't auto complete the JSX attribute or react-native components
      • Setting.json
    • Service Registration
      • Apple Enterprise Developer Account
    • DevOps
      • Using NGINX for ReactJS
    • Firebase
      • Upload image
      • Save data
      • Save Data with unique key
      • Setup local firebase functions
    • Documentation
      • API Documentation
    • React Native
      • Tips
      • Performance
      • Patterns in React
      • Rendering in React
      • View JS from apk
      • Flatlist with large data list causes blank view
      • Facebook SDK
      • Screen Events
      • Hotkeys
      • Deep Links
        • iOS Deep Link: Universal Link vs URL Schemes‌
        • Deferred Link‌
      • Text going off screen with flexDirection: 'row'
  • _posts
    • 2020-07-13-How-to-Understand-things
    • 2019-02-20-how-to-create-Jekyll-blog-with-github-page
    • 2019-03-01-books-02-19
    • 2019-02-11-highlight-the-pragmatic-programmer-part-01
    • 2019-02-15-highlight-the-pragmatic-programmer-part-03
    • 2019-02-14-highlight-the-pragmatic-programmer-part-02
    • 2019-04-11-books-03-19
    • 2019-03-07-telegram-bot-as-a-real-time-logger
    • 2019-02-04-generic-loading-ios
    • 2019-01-31-summary-books-01-19
    • 2019-03-27-short-polling-with-Swift
    • 2019-02-22-try-catch-exception-rather-than-return-codes
    • 2019-09-29-api-docs
  • category-archive
  • tag-archive
Powered by GitBook
On this page
  • Problem
  • What are current world-wise tools for API docs?
  • Swagger
  • APIDoc
  • Postman
  • Conclusion

Was this helpful?

  1. _docs
  2. Documentation

API Documentation

Summary for API Docs tool

PreviousDocumentationNextReact Native

Last updated 5 years ago

Was this helpful?

Problem

Currently, I have an existing project. It's written in Go, and don't have any useful API Docs. So I tried to have a look.

What are current world-wise tools for API docs?

  • Swagger

  • APIDoc

  • Postman

Swagger

Tools for implementing the OpenAPI specification

Starting from scratch?

  • Use the to create your OAS definition and then use to generate server implementation.

  • Use the to visualize and document your OAS definition

  • Design, document and develop APIs as a team using

Creating the OAS file from an existing API?

Finding an easy way to generate the OpenAPI definition from an existing API can be challenging. You have to reverse engineer the API and get acquainted with the process of generating the OAS from existing APIs. The good news is that Swagger tools can help you do this with ease.

Pros

  • Lots of documentation

  • Large community

  • Strong framework

Cons

  • Require a lot of effort, especially for existing project

APIDoc

Inline documentation for RESTful web APIs. Generate docs for annotations in source code

/** 
 * @api {get} /user/:id Request User information
 * @apiName GetUser
 * @apiGroup User
 *
 * @apiParam {Number} id Users unique ID.
 *
 * @apiSuccess {String} firstname Firstname of the User.
 * @apiSuccess {String} lastname  Lastname of the User.
 */

Pros

  • Simple to use

  • Good documentation

Cons

  • Can't run spec

  • Docs can be out of date without testing

Postman

Postman is a collaboration platform for API development.

Have 3 tires, focus on limiting team size.

Pros

  • Simple to use

  • Enviroment variable

  • Example

  • Public document

Cons

  • Input/Update API Docs manunally for each API

  • Price is based on memebers in team.

Conclusion

In my situation, I chose Postman, because it's simplest. I don't have enough resource to write a full docs with APIDocs, and it's hard with Swagger too.

In the next project, I will try Swagger, or at least APIDoc

Use    to create the OAS from your existing Java APIs. Swagger Core supports frameworks like JAX-RS or node.js.

Have a look at this example to see how Swagger Core can help your JAX-RS implemented API -

allows you to easily and quickly auto-generate an OAS definition from any API endpoint right from your browser

If on the other hand you're an API Consumer who wants to integrate with an API that has an OpenAPI definition you can use or the online version of  to explore the API (given that you have a URL to the APIs Swagger definition) - and then use  to generate the client library of your choice. In either case - be sure to check out the long list of and our commercial offering, .

http://swagger.io
http://apidocjs.com
https://www.getpostman.com
Swagger Editor
Swagger Codegen
Swagger UI
SwaggerHub
Swagger Core open source project
https://github.com/swagger-api/swagger-core/wiki/Swagger-Core-JAX-RS-Project-Setup-1.5.X
Swagger Inspector
Swagger Inspector
Swagger UI
Swagger Codegen
open source projects
SwaggerHub