This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@readyapi/api-client
TypeScript icon, indicating that this package has built-in type declarations

1.2.10 • Public • Published

Scalar API Client

Version Downloads License Discord

Installation

npm install @readyapi/api-client

Usage

<script setup>
import { ApiClient } from '@readyapi/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'
})

Package Sidebar

Install

npm i @readyapi/api-client

Weekly Downloads

3

Version

1.2.10

License

MIT

Unpacked Size

1.47 MB

Total Files

210

Last publish

Collaborators

  • nextlinux