This API is a middleware access another API and can get all users and products or get ID user and product and also can return a buget based on tax of selected user at value chosed products.
The only requirement is the NodeJs ^16.16.0 version ✨
N Nodejs N
npm startThe API is hosted at http://localhost:3000
To get all users
[
{
"id": <int>,
"name": <string>,
"tax": <int>
}, {...}
]To get a single user by it's ID
| param | type | description |
|---|---|---|
userId |
int | The user unique Id |
{
"id": <int>,
"name": <string>,
"tax": <int>
}To get all products
[
{
"id": <int>,
"name": <string>,
"price": <int>
},{...}
]To get a sigle product by it's ID
| param | type | description |
|---|---|---|
productId |
int | The product unique Id |
{
"id": <int>,
"name": <string>,
"price": <int>
}To sum all products and multiply for tax
[
productId<int>,
productId<int>,
...
]| param | type | description |
|---|---|---|
userId |
int | The user unique Id |
{
"total": <int>
}Thanks for read! 🥹 bjs, Ellie.