Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For #2: build an API with two endpoints, /diff/ / and /list. The /diff/ / endpoint (for example /diff/2020- 01/2020-02) should use the http://www.tvmaze.com/api# episodes-by-date

image text in transcribed

For #2: build an API with two endpoints, /diff// and /list. The /diff// endpoint (for example /diff/2020- 01/2020-02) should use the http://www.tvmaze.com/api# episodes-by-date endpoint on TVmaze to find what shows aired ONLY in month2, and not month1. For example, if shows A, B, C, D aired in month1, and shows C, D, E, F aired in month2, then shows E, F only aired in month1. The endpoint should return a list of those shows as JSON. The /list endpoint should return, as JSON, a list of every request made to your API, with the date and time. For example [{"datetime": "January 4, 2021 9:00 PM", "call":"/diff/2018- 01/2019-01"}] if only one request had ever been made to the API with those characteristics. You can store the requests in SQLite. For Final: write a Python script that takes in a month as a command-line argument (https://realpython.com/python- command-line-arguments/). For every show that aired during that month, upload a file to S3 that lists every day that it aired. Put that file in an S3 bucket, with the number of times the show aired that month as a prefix in the object key name. For example, if a show called "Example Show" aired 10 times in 2020-01 (January 2020), you would use this path for the show --your-s3- bucket/10/example-show (or you can use the show's ID in TVmaze instead of the name) -- and you would upload a file that looks like 2020-01-02 2020-01-04 2020-01-06 and so on, depending on exactly what days the show has aired during that month. For #2: build an API with two endpoints, /diff// and /list. The /diff// endpoint (for example /diff/2020- 01/2020-02) should use the http://www.tvmaze.com/api# episodes-by-date endpoint on TVmaze to find what shows aired ONLY in month2, and not month1. For example, if shows A, B, C, D aired in month1, and shows C, D, E, F aired in month2, then shows E, F only aired in month1. The endpoint should return a list of those shows as JSON. The /list endpoint should return, as JSON, a list of every request made to your API, with the date and time. For example [{"datetime": "January 4, 2021 9:00 PM", "call":"/diff/2018- 01/2019-01"}] if only one request had ever been made to the API with those characteristics. You can store the requests in SQLite. For Final: write a Python script that takes in a month as a command-line argument (https://realpython.com/python- command-line-arguments/). For every show that aired during that month, upload a file to S3 that lists every day that it aired. Put that file in an S3 bucket, with the number of times the show aired that month as a prefix in the object key name. For example, if a show called "Example Show" aired 10 times in 2020-01 (January 2020), you would use this path for the show --your-s3- bucket/10/example-show (or you can use the show's ID in TVmaze instead of the name) -- and you would upload a file that looks like 2020-01-02 2020-01-04 2020-01-06 and so on, depending on exactly what days the show has aired during that month

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions

Question

Explain strong and weak atoms with examples.

Answered: 1 week ago

Question

Explain the alkaline nature of aqueous solution of making soda.

Answered: 1 week ago

Question

Comment on the pH value of lattice solutions of salts.

Answered: 1 week ago

Question

What was the role of the team leader? How was he or she selected?

Answered: 1 week ago

Question

How are members held accountable for serving in the assigned roles?

Answered: 1 week ago