apitoolkit-adonis

3.1.3 • Public • Published

APItoolkit's Logo APItoolkit's Logo

AdonisJS SDK

APItoolkit SDK Join Discord Server APItoolkit Docs

APItoolkit is an end-to-end API and web services management toolkit for engineers and customer support teams. To integrate your AdonisJS application with APItoolkit, you need to use this SDK to monitor incoming traffic, aggregate the requests, and then deliver them to the APItoolkit's servers.


Table of Contents


Installation

Kindly run the command below to install the SDK:

npm install apitoolkit-adonis@latest

Configuration

Next, run the command below to configure the SDK using ace:

node ace configure apitoolkit-adonis

Then, register the middleware by adding apitoolkit-adonis to your global middleware list in the start/kernel.js|ts file like so:

server.use([
  () => import('apitoolkit-adonis'),
])

Then, create an apitoolkit.js|ts file in the /conf directory and export the defineConfig object with some properties like so:

import { defineConfig } from 'apitoolkit-adonis'

export default defineConfig({
  apiKey: "{ENTER_YOUR_API_KEY_HERE}",
  debug: false // Set to true to enable debug mode
})

[!NOTE]

The {ENTER_YOUR_API_KEY_HERE} demo string should be replaced with the API key generated from the APItoolkit dashboard.


[!IMPORTANT]

To learn more configuration options (redacting fields, error reporting, outgoing requests, etc.), please read this SDK documentation.

Contributing and Help

To contribute to the development of this SDK or request help from the community and our team, kindly do any of the following:

License

This repository is published under the MIT license.


Readme

Keywords

none

Package Sidebar

Install

npm i apitoolkit-adonis

Weekly Downloads

238

Version

3.1.3

License

MIT

Unpacked Size

32.9 kB

Total Files

22

Last publish

Collaborators

  • apitoolkit