🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@exxeta/openapi-cop-mock-server

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exxeta/openapi-cop-mock-server

Mock server used to test openapi-cop proxy server.

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
8
-65.22%
Maintainers
2
Weekly downloads
 
Created
Source

OpenAPI Mock Server

Mock server that based on openapi-backend express-ts-mock example. It mocks responses using the examples defined in the OpenAPI document.

QuickStart

npm install
# Quickly start the mock given a OpenAPI document
npm run dev-start -- "../test/schemas/v3/3-parameters.yaml"

Try the endpoints:

curl -i http://localhost:8889/pets
curl -i http://localhost:8889/pets/1
curl -i -X POST -d {} http://localhost:8889/pets

curl -i -X POST -d '{"data": "sent"}' -H "Content-Type:application/json" http://localhost:8889/pets

FAQs

Package last updated on 03 Feb 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