Đã Đóng

Help me with REST API function

Exercise Pre-Interview:

Background Information

o Webpagetest is an online Browser execution service used to test web pages. You can review this free service at [login to view URL]

o The reference to the REST-API for public and private instances can be found here: [login to view URL]

o Suggestions & Other Ideas

• Write your own code, because we’ll talk about it during the call and you’ll need to explain your approach.

• This exercise is as much about writing defensible, provable, and consistent / stable code as it is in fulfilling the spect

• Be prepared to discuss why you might use co-routines vs threads vs processes from your own experiences.

Exercise Questions:

You will write a wrapper module for Web Page Test that has the following features:

A. Make a single class that can fetch a set of JSON results from a given web-page-test URL

• Initializing the class should take a single parameter, the API key. You can register for your own developer key here: [login to view URL]

• Ensure that each function within your class has proper Pytest-enabled unit tests, which allow verification of operation

• Assume all default parameters are currently sufficient - don’t worry too much about having to support multiple parameters other than API key and URL to test.

A. Write a method “get” that fetches the results from a successful scan (not just the results from a submission). This should be a valid JSON data object or None. Ensure that you have at least one unit and end-to-end test for this method.

• Be careful about understanding the difference between submitting a job to Web Page Test and getting the results from a finished job. “Get” method should return the results from a finished scan as a JSON .

A. Create a method called “get_async” that uses python asynchronous co-routines to perform the same actions as the “get” method. Async / Await patterns preferred here. Verify using at least 1 unit test.

A. Once the “get_async” method works, instantiate the class and enable the get method to be called using a multi-threaded pattern. Call the method “get_parallel”

• Input will be an array of URLs,

• Use the same logic from B and C above,

• This should support up to 10 parallel ‘get’ calls being made at the same time asynchronously

• Write a unit test to verify parallel thread execution

• Make sure all proper exception handling is in place so that if something fails (network failure, etc) it deals with the failure gracefully (without crashing)

Kĩ năng: Javascript, HTML, Python, RESTful API, Django

Xem nhiều hơn: help templatemonster api, phplink directory call member function non object, call member function non object shop_browse_queriesphp line, ebay api function, call member function non object virtuemart, upload multiple files rest api, salesforce rest api update multiple records, rest api filter multiple values, rest api multiple filters, rest api multiple parameters, call rest api from azure function, rest api delete multiple resources, multiple rest api calls, rest api multiple identifiers, rest api get multiple ids, rest api update multiple records, salesforce rest api user object, rest api response object best practice, response object in rest api, how to call multiple rest api parallel in java

Về Bên Thuê:
( 1 Nhận xét ) San Jose, United States

ID dự án: #22365232

12 freelancer đang chào giá trung bình $45 cho công việc này

irfankhokhar1986

Hello sir I hope you are doing well. After reading your offer, this looks like a perfect fit for my skill sets so May I discuss with you for further details about this project?

$20 USD trong 1 ngày
(53 Nhận xét)
5.1
phonexayphong523

Hello, How are you? I have read project description carefully and I am very interested in your project. Django/DRF is my major skill and I have done more django projects than freelancer review. I can work full time Thêm

$20 USD trong 7 ngày
(6 Nhận xét)
4.8
viapromote

HI I AM A HIGH SKILLED WEB(FULL STACK) DEVELOPER AND SEO EXPERT. I CAN IMMEDIATELY START TO WORK ON YOUR PROJECT. I HAVE ALSO WORKED ON MANY APIS, ESPECIALLY EMAIL MARKETING LIKE ZOHO, MAILCHIMP, SALESFORCE ETC. THI Thêm

$20 USD trong 7 ngày
(13 Nhận xét)
4.2
Alexsfodik

****** Python Django Expert ******* Hello. I have read your job description carefully. I have full experience in Python and Django with sqlite, mysql. So I can do your projet perfectly. I hope to discuss more via chat Thêm

$200 USD trong 2 ngày
(5 Nhận xét)
3.8
jiangstar

Hello! I am a senior Django expert and I have experienced for +3 years. I have all the skills you want and I am very interested in your project. I am free now and I will start work immediately. Please send me your deta Thêm

$30 USD trong 2 ngày
(12 Nhận xét)
3.8
LeeSong1025

Hello, How are you? I have read your requirements carefully and I think I am one of the mostly proper for you. And I also have been experienced 7+ years with Web and I mastered Django and Flask python framework. I can Thêm

$40 USD trong 1 ngày
(14 Nhận xét)
3.5
tanishasharma

Greetings! I am 10 years of experienced developer, understanding requirements better and delivering better solution My recent work- [login to view URL] [login to view URL] [login to view URL] I ca Thêm

$20 USD trong 7 ngày
(9 Nhận xét)
3.5
KonstanBer

Good day! I am very interested to your project and ready to start right now. I have read your project requirement carefully. I have many experience in API in PHP. I can meet your requirement Give me one chance to work Thêm

$50 USD trong 1 ngày
(3 Nhận xét)
3.3
Aliajam0220

Web site Development Expert here. [login to view URL] [login to view URL] these are the most successful portfolios in my history. I have more than 9 years of Web development experience and PHP, NodeJS, Python, ASP Thêm

$20 USD trong 7 ngày
(2 Nhận xét)
3.2
shahzaibpro

Hey there, I see you’re looking for somebody who are experienced graphic designer and web designer for your business Nano Journey … I have 5+ years of experience in Adobe Photoshop, Illustrator, UI/UX, JS, Bootstrap, H Thêm

$20 USD trong 7 ngày
(2 Nhận xét)
2.2
Mwikya

Hello, I am a web developer with 6+ years of experience in python and the django framework.I have read and understood your project requirements. I will provide quality work.

$50 USD trong 1 ngày
(0 Nhận xét)
0.0
sadanand0851

I have 7 years experience in PHP and Mysql. I work with API also, if you give me chance to work with you, I will provide you best solution. thank you

$55 USD trong 4 ngày
(0 Nhận xét)
0.0