@scalar/api-client-modal

v0.0.16
A modal wrapper around the API Client
vue api client modal

Scalar Draggable component

Version Downloads License Discord

Installation

npm install @scalar/api-client-modal

Usage

import { createScalarApiClient } from '@/api-client-modal'

// Initialize
const { open } = await createScalarApiClient(document.getElementById('root'), {
  spec: {
    url: 'https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.json',
  },
})

// Open the API client right-away
open()

// Or: Open a specific operation
// open({
//   method: 'GET',
//   path: '/me',
// })

You can find this example in the playground folder.

npm i @scalar/api-client-modal

Metadata

  • MIT
  • >=18
  • Scalar
  • released 6/27/2024

Downloads

Maintainers

Scalar