📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

@scalar/api-client

Package Overview
Dependencies
Maintainers
8
Versions
389
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

0.8.7
Source
npm
Version published
Weekly downloads
35K
-9.18%
Maintainers
8
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 useRequestStore() to interact with the API client.

readOnly

const { readOnly } = useRequestStore()

readOnly.value = false

activeRequest

const { activeRequest } = useRequestStore()

console.log(activeRequest)

setActiveRequest

const { setActiveRequest } = useRequestStore()

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

Keywords

api

FAQs

Package last updated on 10 Jan 2024

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