1.0.0 • Published 8 months ago
mytestapi v1.0.0
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
}
1.0.0
8 months ago