Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mocks-server/plugin-admin-api

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mocks-server/plugin-admin-api

Mocks Server plugin providing an administration REST API

  • 3.3.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Mocks Server logo

Build Status Coverage Quality Gate Downloads Renovate License


Mocks Server Plugin Admin Api

Plugin for Mocks Server that provides a REST API allowing to interact with the server while it is running.

This is very useful when running E2E tests, because you can change the responses of the API mock simply with a HTTP request in the before method of your tests, for example.

A client for the administration api is also distributed as a separated package: @mocks-server/admin-api-client.

Usage

This plugin is included in the main distribution of the Mocks Server project, so you can refer to the official documentation website.

Options

  • plugins.adminApi.port (Number): Port for the administration REST API. Default is 3110.
  • plugins.adminApi.host (String): Host for the administration REST API. Default is 0.0.0.0 (Reachable to all IPv4 addresses on the local machine).

Read more about how to set options in Mocks Server here.

API resources

Available API resources are described in the OpenAPI specification provided by the API server itself at http://localhost:3110/docs/open-api.json once it is started.

Contributing

Contributors are welcome. Please read the contributing guidelines and code of conduct.

Keywords

FAQs

Package last updated on 04 Aug 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc