Socket
Book a DemoInstallSign in
Socket

@mia-platform/api-explorer

Package Overview
Dependencies
Maintainers
5
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mia-platform/api-explorer

UI components for the API explorer

latest
Source
npmnpm
Version
6.7.9
Version published
Weekly downloads
5
Maintainers
5
Weekly downloads
 
Created
Source

@mia-platform/api-explorer

UI components for the API explorer

NPM version

Installation

npm install --save @mia-platform/api-explorer

Usage

<ApiExplorer
  docs={Array}
  oasFiles={Object}
  flags={Object}
  appearance={{
    referenceLayout: String,  
  }},
  oauth={Boolean}
  suggestedEdits={Boolean}
  tryItMetrics={function}
  variables={
    user: {
      keys: Array,
    },
    defaults: Array,
  }
  glossaryTerms={Array}
/>
  • docs - an array of objects from ReadMe containing all of your pages
  • oasFiles - an object of oas 3 files with the key being the _id of the apiSetting in readme e.g.
{
  '5a205ad8c2de471d1c80dd22': <OAS 3 file>
}
  • flags - an object of project flags from readme. Changing these will modify how the API Explorer works.
  • appearance.referenceLayout - a string to determine the layout style, either row or column.
  • oauth - whether this project uses oauth or not
  • suggestedEdits - whether suggested edits are enabled or not. This just toggles the button.
  • tryItMetrics - function to call when request is made
  • variables.user - user specific variables, setup via JWT login to ReadMe
  • variables.defaults - default project variables
  • glossaryTerms - glossary terms defined in the ReadMe project

License

ISC

FAQs

Package last updated on 06 Oct 2023

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