mytestapi
v1.0.0
Published
A versatile utility package for simplifying API calls in your user applications. Use this package to interact with dummy APIs effortlessly during development and testing. It's an invaluable tool for ensuring seamless integration and functionality while av
Downloads
3
Readme
My Dummy API Testing Package
Description
My Dummy API Testing Package is a lightweight utility that simplifies API calls for testing purposes. It allows developers to interact with dummy APIs effortlessly during development and testing, streamlining the process of mocking API responses.
Features
- Simplify API calls for testing.
- Access dummy API data easily.
- Improve testing workflow.
- don't need to write fetch syntsx
Installation
You can install the package via npm:
npm install my-dummy-api --save
dummyapiProduct.getAll()
.then((data) => console.log(data))
.catch(e => console.log(e))
output
{
id: 30,
title: 'Key Holder',
description: 'Attractive DesignMetallic materialFour key hooksReliable & DurablePremium Quality',
price: 30,
discountPercentage: 2.92,
rating: 4.92,
stock: 54,
brand: 'Golden',
category: 'home-decoration',
thumbnail: 'https://i.dummyjson.com/data/products/30/thumbnail.jpg',
images: [Array]
}
],
total: 100,
skip: 0,
limit: 30
}