qmetrics.net

Knife4j

OpenAPI and Swagger UI enhancement for Java Spring

Knife4j screenshot

Knife4j integrates enhanced OpenAPI 2 and 3 API documentation into Java MVC and Spring Boot applications. It adds a richer doc UI, starters, and optional aggregation for microservices.

Overview

Knife4j is an enhancement layer for projects that already use Swagger or OpenAPI on Java web stacks. It grew from swagger-bootstrap-ui and separates backend integration from the documentation front end so teams can use it more flexibly in microservice layouts.

It supports OpenAPI 2.0 and 3.0 and works with Spring MVC, Spring Boot across several 2.x and 3.x lines, and Spring WebFlux. Starters hook into Springfox for Swagger 2 and springdoc-openapi for OAS3. The doc UI adds custom docs, dynamic parameter try-out, internationalization, interface ordering, and export options.

Published API docs are served at a stable doc.html address. Optional components include aggregation middleware for servlet stacks and Spring Cloud Gateway, a desktop aggregation tool, and documented Docker and Kubernetes approaches for combining OpenAPI from multiple services.

Teams add a Maven dependency and Swagger configuration, define controllers with annotations, start the app, and open the Knife4j URL in a browser to browse and exercise REST endpoints.

Key features

  • OpenAPI 2 and 3 support
  • Enhanced interactive API doc UI
  • Spring Boot auto-configuration starters
  • Springfox and springdoc integration
  • Spring MVC and WebFlux compatibility
  • Gateway OpenAPI aggregation options
  • Custom docs and dynamic debugging
  • Kubernetes and Docker aggregation docs

Use cases

  • Spring Boot REST API documentation
  • Microservice OpenAPI aggregation
  • Trying endpoints from the browser
  • Java team OpenAPI 3 adoption

Tags

Similar software

Swagger UI

Interactive OpenAPI reference documentation UI

Swagger UI renders OpenAPI and standalone JSON Schema specs as browsable, try-it-out API documentation in the browser. It ships as npm packages or static assets for your site.

  • OpenAPI-driven doc generation
  • Try-it-out request console
  • Multiple OpenAPI version support
JavaScriptWebDetails →
★ 29.1k⟳ todayApache-2.0

MSW

JavaScript API mocking through network-level request interception

Mock Service Worker lets you define HTTP mocks once and reuse them in browsers and Node.js. Applications keep calling real APIs while responses are substituted at the network layer.

  • Browser Service Worker interception
  • Node.js setupServer API
  • Shared handlers across environments
TypeScriptWebDetails →
★ 18.4k⟳ todayMIT

GraphiQL

GraphQL IDE, language service, and editor integration toolkit

An official GraphQL Foundation monorepo with the GraphiQL browser IDE, language services, LSP server, and editor modes for GraphQL development.

  • In-browser GraphiQL IDE in React
  • Shared GraphQL language service package
  • LSP server and CLI for editor extensions
TypeScriptWeb, CLIDetails →
★ 17k⟳ todayMIT

Scalar

OpenAPI-native API references, client, and docs tooling

Scalar is an open-source API platform centered on OpenAPI and Swagger. It offers interactive API references, an offline-first API client, and related docs and agent-facing tooling.

  • OpenAPI and Swagger rendering
  • Built-in API testing
  • Multi-language code examples
TypeScriptWeb, Linux, macOS, WindowsDetails →
★ 16.5k⟳ todayMIT
Open Source Alternative to:Postman

swag

Go annotation-driven Swagger 2.0 API documentation generator

Swag reads declarative comments in Go source and emits Swagger 2.0 specs plus a docs package for frameworks such as Gin. A CLI formats comments, initializes docs, and supports Docker or binary installs.

  • Swagger 2.0 generation
  • Declarative Go comments
  • Gin framework integration
GoDockerDetails →
★ 13k⟳ 2 months agoMIT · open core

REST Client

HTTP and GraphQL client inside Visual Studio Code

REST Client sends HTTP, GraphQL, and cURL requests from editor files and shows highlighted responses, variables, auth, and history in VS Code.

  • Send HTTP requests from .http files
  • GraphQL query and variables support
  • cURL import and copy as cURL
TypeScriptDetails →
★ 6.1k⟳ 10 months agoMIT