Socket
Book a DemoInstallSign in
Socket

@scalar/api-client

Package Overview
Dependencies
Maintainers
7
Versions
443
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scalar/api-client

the open source API testing client

Source
npmnpm
Version
0.5.0
Version published
Weekly downloads
91K
13.19%
Maintainers
7
Weekly downloads
 
Created
Source

Scalar API Client

Version Downloads License Discord

Installation

npm install @scalar/api-client

Usage

<script setup>
import { ApiClient } from '@scalar/api-client'
</script>

<template>
  <ApiClient />
</template>

Props

proxyUrl?: string

Pass an URL of a request proxy to avoid CORS issues.

Composable

You can use useApiClientRequestStore() to interact with the API client.

readOnly

const { readOnly } = useApiClientRequestStore()

readOnly.value = false

activeRequest

const { activeRequest } = useApiClientRequestStore()

console.log(activeRequest)

setActiveRequest

const { setActiveRequest } = useApiClientRequestStore()

setActiveRequest({
  url: 'https://echo.scalar.com'
  type: 'GET,
  path: '/foobar'
})

Keywords

api

FAQs

Package last updated on 13 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts