• Stars
    star
    2,574
  • Rank 17,083 (Top 0.4 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created about 12 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Javascript library to connect to swagger-enabled APIs via browser or nodejs

Swagger Client

Build Status

Swagger Client is a JavaScript module that allows you to fetch, resolve, and interact with Swagger/OpenAPI documents.

New!

This is the new version of swagger-js, 3.x. The new version supports Swagger 2.0 as well as OpenAPI 3.

Want to learn more? Check out our FAQ.

For features known to be missing from 3.x please see the Graveyard.

For the older version of swagger-js, refer to the 2.x branch.

The npm package is called swagger-client and the GitHub repository is swagger-js. We'll be consolidating that soon. Just giving you the heads-up. You may see references to both names.

Compatibility

The OpenAPI Specification has undergone multiple revisions since initial creation in 2010. Compatibility between Swagger Client and the OpenAPI Specification is as follows:

Swagger Client Version Release Date OpenAPI Spec compatibility Notes
3.19.x 2023-01-23 2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.0 tag v3.19.0-alpha.3
3.10.x 2020-01-17 2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3 tag v3.10.0
2.1.32 2017-01-12 1.0, 1.1, 1.2 tag v2.1.32. This release is only available on GitHub.

Documentation

Usage

Development

Migrations

Runtime

  • Node.js >=12.20.0
  • swagger-client works in the latest versions of Chrome, Safari, Firefox, and Edge.

Security contact

Please disclose any security-related issues or vulnerabilities by emailing [email protected], instead of using the public issue tracker.

More Repositories

1

swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
JavaScript
25,331
star
2

swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
Mustache
16,413
star
3

swagger-editor

Swagger Editor
JavaScript
8,614
star
4

swagger-core

Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API
Java
7,323
star
5

swagger-node

Swagger module for node.js
JavaScript
3,970
star
6

swagger.io

The content of swagger.io
1,548
star
7

swagger-parser

Swagger Spec to Java POJOs
Java
744
star
8

swagger-samples

Samples for the various Swagger projects under swagger-api
JavaScript
536
star
9

swagger-socket

Swagger Socket: A REST over WebSocket
Java
381
star
10

swagger-play

Java
329
star
11

swagger-codegen-generators

Mustache
277
star
12

swagger-petstore

Java
214
star
13

validator-badge

Validate your Swagger JSON/YAML today!
Java
201
star
14

swagger-inflector

Java
160
star
15

swagger-scala-module

Swagger support for scala
Scala
104
star
16

swagger-converter

OpenAPI/Swagger 2.0 to OpenAPI 3.0 Converter WebService
Python
97
star
17

apidom

Semantic parser for API specifications
TypeScript
55
star
18

swaggerhub-maven-plugin

A simple maven plugin to access SwaggerHub hosting of OpenAPI/Swagger from a maven build process.
Java
30
star
19

swagger-play-sample-app

A sample play app which uses swagger plugin to make the age old pet store swagger compliant.
JavaScript
29
star
20

rails-petstore

Ruby
29
star
21

swagger2

For working out the Swagger 2 working group page
CSS
23
star
22

swaggerhub-gradle-plugin

Gradle plugin for SwaggerHub
Java
20
star
23

scalatra-sample-app

Shell
20
star
24

swagger-scala-sample-app

A fully-functioning, stand-alone Swagger server written in scala which demonstrates how to enable Swagger in your API.
Scala
20
star
25

swagger-form-editor

JavaScript
19
star
26

petstore-kafka

A demo site built on top of Kafka topics
JavaScript
14
star
27

swagger-async-httpclient

Scala
10
star
28

swagger-editor-cra

This is forked Create React App that builds SwaggerEditor@5
JavaScript
9
star
29

swagger-scala

Scala
8
star
30

swagger-play-1.2

Scala
8
star
31

swagger-schema-packaging

6
star
32

apidom-lsp-vscode

ApiDOM VS Code Extension
TypeScript
5
star
33

sway-worker

4
star
34

apidom-ls-client

Demo client for apidom-ls OpenAPI / AsyncAPI ApiDOM validation service
TypeScript
3
star
35

.github

Common Github files for the Swagger projects
3
star
36

swagger-codegen-test

2
star