You need to build a NodeJS service to aggregate data from two different apis and then return it to the user. There is a products api and an inventory api, they have the following api endpoints:
Inventory Endpoints:
/inventory - returns the inventory for all the products we have
/inventory/name - returns the inventory for a single product
Product Endpoints:
/products - returns the all of the products and their prices
/products/name - returns a single products and its price
What you need to build:
you need to create two api endpoints in your NodeJS service to do the following:
An api endpoint for the user to get all of the products along with each products inventory. It should return an array of products that include the product's name, price and inventory
An api endpoint for the user to get a single product and have it return the product name, price and inventory.
There is no authentication or authorization required to access the apis. Feel free to get as creative as you want, and extra points if you use ES6. Please implement error handling, so that if I pass in a product that does not exist it returns a message to user letting them know that the product they requested does not exist.
Hi
I am Sr. Software engineer having 4 years of experience in Nodejs, nosql, angularjs and REST API.
I can create a standyREST API which will give you expected result.
$25 USD 1 päivässä
4,9 (3 arvostelua)
2,3
2,3
2 freelancerit tarjoavat keskimäärin $25 USD tätä projektia