Archive: Write an rest api to call another endpoint to get product list

Budget By arrangement
Posted: 5 years ago
Closed
Description
Create a Restful webservice to request products in category 600001506 that have a price reduction.

Use this API to obtain a list of products:
https://jl-nonprod-syst.apigee.net/v1/categories/600001506/products?key=2ALHCAAs6ikGRBoy6eTHA58RaG097Fma

The following should be returned as Json (field names are in bold) :
An array of products. Each element should contain:
productId
title
An array of colorSwatches. Each element should contain:
color
rgbColor which is an RGB representation of the basicColor in a six digit hexadecimal format, e.g. “F0A1C2”.
skuid
nowPrice which is the price.now represented as a string, including the currency, e.g. “£1.75”. For values that are integer, if they are less £10 return a decimal price, otherwise show an integer price, e.g. “£2.00” or “£10”.
priceLabel. An optional query parm called labelType can be set to any of:
1. ShowWasNow - in which case return a string saying “Was £x.xx, now £y.yyy”.
2. ShowWasThenNow - in which case return a string saying “Was £x.xx, then £y.yy, now £z.zzz”. If the original price.then2 is not empty use that for the “then” price otherwise use the then1 price. If the then1 price is also empty then don’t show the “then” price.
3. ShowPercDscount - in which case return “x% off - now £y.yy”.
If the query parm is not set default to use ShowWasNow format.
In all cases use the price formatting as described for nowPrice.

The array of products should only contain products with a price reduction and should be sorted to show the highest price reduction first. Price reduction is calculated using price.was - price.now.

Looking up RGB values
Create a hash table or similar device to translate basicColor to RGB.

Trapping errors with the data provided by the API:
If there is invalid data on the input file then write out an empty string or assume a value of zero rather than throwing exceptions or creating complex error logging.
Skills:
digital,json,rest api,rgb,translation
Category

Similar freelance jobs

safe$500
More than 10 freelancers are needed to work on this project, Would be a pleasure to work with you, Simple English words which will be given to you all you need to do is follow the instructions and submit before due date, much skill is not necessarily required for this project as it is very simple and......
safe$500
More than 10 freelancers are needed to work on this project, Would be a pleasure to work with you, Simple English words which will be given to you all you need to do is follow the instructions and submit before due date, much skill is not necessarily required for this project as it is very simple and......
 
I have a GTA server, and I would like to translate the scripts from English to Arabic, I know a bit about programming and have translated scripts for the game before, so I need help to know how to translate them. Skills:....
$113
I need a specialist in economics/ corporate and finance to do a numerical assignment in Real Options & Decision Making, which contains two problems set. Can anyone help me with that? And please I need someone who already did such work before, otherwise please do not offer your services. Thanks. Skills:....
$359
I have an awful lot of photocopies I need in a digital form. I'm really not sure how much this will cost me so I'm hoping to find someone to guide me through this. It's mostly data from my customers that need to be in a digital format. txt file/. doc Please let me know if you're available. Skills:....
$43
I need a writer to create 7 poll questions and answers related to the oil and gas industry. Poll questions should be a mix of current industry topics or future subjects. Good to use some "yes/no/maybe" answers and some industry-specific words for answers. Skills:....
$417
I require a written translation from Sinhala to English with timecode. The video is just over 1 hour long. The video is a few scenes from a documentary film shoot. I need someone available immediately, who can return the written translation by 13/3/2020. Skills:....
$84
One of our client complained about the services we provided and have written to ask for a compensation. My client is a firm of solicitor and I need a professional response to: - Keep the client happy - To avoid paying compensation - I do not believe he is due for compensation I will provide you with......
$258
To translate a website corvid. productions from English to German Please, count the words and let me know the price Looking forward to your reply! Skills:....
$68
Hello, A client has come to us as they would like to publish their 25 page Word document as an Ebook to Amazon. We are looking for someone who has experience in this area and is able to provide a quotation. Please also let me know what the work entails and what you would need us to provide, such as a......
$104
I need link posting on CNN. com. anybody who has complete access to post link on CNN. com. kindly inbox me. Thanks. Skills:....
 
I need to build content & have recipes for blog. I also need to run instagram influencer campaign for product sales, possibly facebook one for cake baking and decorating . Skills:....
 
I need to have a quick conversation on the phone with a Spanish speaker so I need you to translate. It’s about buying/selling a house. Skills:....
 
I'm looking for a content writer to contribute articles on our company blog, but I would like to test with 1 articles first, before engaging on a more permanent basis. Words: ~1000 Content outline attached. Skills:....
$645
I need a writer who has experience in technical writing and familiar with few languages or any one like python , r , Pearl, c, etc. Skills:....
$185
We need help with creating content for our website, we provide training for individuals and corporates. For individuals, we provide salesforce admin training, Salesforce Admin and App builder training, Salesforce sales cloud consultant training so we need content for each page. We also need a page for......
$185
Looking for a person to translate 28 products with 12 colour variations each, from English to German. The following will need translated: - product name - product description - Key Product Features (5 for each product) - search terms (keywords) The person doing the project will also need to be able to......
$185
We have the website. We need SEO optimization for it and need a good rankings for specific audience. Our potential customers from Europe. We are having company only in Lithuania. Let me know any clarification required. I will provide any information. Thank you! Skills:....
$335
CBD Website project We are looking for some website page copy, product copy and a video copy then ongoing weekly work from then on WEBSITE Writing copy for a website (copy adaptation from our manufacturer website) plus some of our own copy from our B2B Alibaba mini-website page PRODUCT COPY 8 product......
$68
I am looking for a translator who has the interest to translate hand-written letters from German to English. The letters correspondence between my late mother and her relatives roughly between 1940 and 1960. My family would like to know if these letters contain information which would help us to learn......
$163
I need a website translated from English to German. Please message me for details of the site. No idea on price so please ignore the budget! Skills:....
View all