Skip to content

Repository files navigation

HTTP API Mock npm version

GitHub Actions semantic-release Renovate @commitlint/config-conventional code style: prettier ESLint: TypeScript

Provides a mock HTTP API for testing third-party API integrations.

Create a new mock HTTP API

Provide your AWS credentials.

Create a new mock API:

npx @bifravst/http-api-mock

{
  "stackName": "http-api-mock-69c2c4b9",
  "responsesTableName": "http-api-mock-69c2c4b9-httpapimockresponses562FCFC7-C80OCULJKYFE",
  "apiURL": "https://liv73h149l.execute-api.eu-west-1.amazonaws.com/prod/",
  "requestsTableName": "http-api-mock-69c2c4b9-httpapimockrequests2216D487-608PM7EHETW4"
}

Describe a mock HTTP API

npx @bifravst/http-api-mock describe <stackName>

Delete a mock HTTP API

npx @bifravst/http-api-mock destroy <stackName>

Node & NPM

This project requires Node.js >=24 and npm >=12.0.2 <13 (enforced via check-node-version on npm install and npm ci).

The check is skipped during npm publish and npm pack, because semantic-release bundles its own npm (@semantic-release/npm depends on npm@^11.6.2) and runs the publish with that version rather than the one installed in CI.

About

Helper functions for AWS lambdas written in TypeScript.

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages