# @blackwall/api-requests-nuxt

> Nuxt module for api-requests

Latest version **1.1.3** (published 2022-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @blackwall/api-requests-nuxt
pnpm add @blackwall/api-requests-nuxt
yarn add @blackwall/api-requests-nuxt
bun add @blackwall/api-requests-nuxt
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2022-07-13 |
| First published | 2019-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | diqost23, zakhse |

## Links

- npm: https://www.npmjs.com/package/@blackwall/api-requests-nuxt
- Repository: https://gitlab.wall.black/npm-packages/api-requests-nuxt
- npm.io page: https://npm.io/package/@blackwall/api-requests-nuxt

## Dependencies (2)

- [@blackwall/api-requests](https://npm.io/package/@blackwall/api-requests.md) ^1.0.2
- [@blackwall/api-requests-generator](https://npm.io/package/@blackwall/api-requests-generator.md) ^1.0.2

## Recent versions

- 1.1.3 (latest) — 2022-07-13
- 1.1.2 — 2022-07-13
- 1.1.1 — 2022-07-13
- 1.1.0 — 2022-07-13
- 1.0.9 — 2022-07-13
- 1.0.8 — 2022-07-13
- 1.0.7 — 2022-07-13
- 1.0.6 — 2022-01-26
- 1.0.5 — 2019-11-04

## README

# Nuxt module for api-requests

[📖 **Release Notes**](./CHANGELOG.md)

## Setup

- Add `api-requests-nuxt` dependency to your project
- Add `api-requests-nuxt` to `modules` section of `nuxt.config.js`
- Add `@nuxtjs/axios` dependency to your project and to `modules` section of `nuxt.config.js`

**WARNING:** it's important to add `@nuxtjs/axios` **after** `api-requests-nuxt`!

```js
{
  modules: [
    ['api-requests-nuxt', {
      apiDirectory: path.resolve(__dirname, 'api'),
      debug: true, // default is false
      injectKey: 'request', // default is 'api'
    }],
    '@nuxtjs/axios'
 ]
}
```

## Usage

You can use `api-requests` by calling `this.$api[REQUEST_NAME](REQUEST_PARAMS)` in Vue object or Vuex actions.

Set `debug` option to `false` to disable logging of successful requests.

Set `injectKey` option to `request`, for example, to call api-request with `this.$request` instead of `this.$api`.

## License

[MIT License](./LICENSE)

Copyright (c) Bitch Intelligence <we@bitch.team> (https://bitch.team/)

---
_Source: https://npm.io/package/@blackwall/api-requests-nuxt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
