1.2.10 • Published 2 years ago
@readyapi/api-client v1.2.10
Scalar API Client
Installation
npm install @readyapi/api-clientUsage
<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 = falseactiveRequest
const { activeRequest } = useRequestStore()
console.log(activeRequest)setActiveRequest
const { setActiveRequest } = useRequestStore()
setActiveRequest({
url: 'https://echo.scalar.com'
type: 'GET,
path: '/foobar'
})1.2.10
2 years ago