Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Swagger Ui Laravel Package

swagger-api/swagger-ui

Swagger UI renders interactive API documentation from your OpenAPI/Swagger spec. Let developers and consumers explore endpoints, try requests, and see schemas without backend implementation. Available as npm modules (swagger-ui, swagger-ui-dist) and Docker image.

View on GitHub
Deep Wiki
Context7

Detecting your Swagger UI version

At times, you're going to need to know which version of Swagger UI you use.

The first step would be to detect which major version you currently use, as the method of detecting the version has changed. If your Swagger UI has been heavily modified and you cannot detect from the look and feel which major version you use, you'd have to try both methods to get the exact version.

To help you visually detect which version you're using, we've included supporting images.

Swagger UI 3.x

Swagger UI 3

Some distinct identifiers to Swagger UI 3.x:

  • The API version appears as a badge next to its title.
  • If there are schemes or authorizations, they'd appear in a bar above the operations.
  • Try it out functionality is not enabled by default.
  • All the response codes in the operations appear at after the parameters.
  • There's a models section after the operations.

If you've determined this is the version you have, to find the exact version:

  • Open your browser's web console (changes between browsers)
  • Type JSON.stringify(versions) in the console and execute the call.
  • The result should look similar to swaggerUi : Object { version: "3.1.6", gitRevision: "g786cd47", gitDirty: true, … }.
  • The version taken from that example would be 3.1.6.

Note: This functionality was added in 3.0.8. If you're unable to execute it, you're likely to use an older version, and in that case the first step would be to upgrade.

Swagger UI 2.x and under

Swagger UI 2

Some distinct identifiers to Swagger UI 2.x:

  • The API version appears at the bottom of the page.
  • Schemes are not rendered.
  • Authorization, if rendered, will appear next to the navigation bar.
  • Try it out functionality is enabled by default.
  • The successful response code would appear above the parameters, the rest below them.
  • There's no models section after the operations.

If you've determined this is the version you have, to find the exact version:

  • Navigate to the sources of the UI. Either on your disk or via the view page source functionality in your browser.
  • Find an open the swagger-ui.js
  • At the top of the page, there would be a comment containing the exact version of Swagger UI. This example shows version 2.2.9:
/**
 * swagger-ui - Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API
 * [@version](https://github.com/version) v2.2.9
 * [@link](https://github.com/link) https://swagger.io
 * [@license](https://github.com/license) Apache-2.0
 */
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle