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:

node node_modules/@bifravst/http-api-mock/dist/cdk/http-api-mock.js

{
  "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

node node_modules/@bifravst/http-api-mock/dist/cdk/http-api-mock.js --describe --stack-name <stackName>

Delete a mock HTTP API

node node_modules/@bifravst/http-api-mock/dist/cdk/http-api-mock.js --destroy --stack-name <stackName>

Node & NPM

This project requires Node.js >=24.19.0 <25 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.

TypeScript 6 and 7

This repo runs TypeScript 6 and 7 side by side, so that eslint works.

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