Design a Python Flask API that will do the following: Return a set of random jokes as a Json array based on a url variab

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Design a Python Flask API that will do the following: Return a set of random jokes as a Json array based on a url variab

Post by answerhappygod »

Design a Python Flask API that will do the following: Return a
set of random jokes as a Json array based on a url variable. When
the user requests the API, a random array of jokes will be returned
as a Json array. You can choose the API route you like, a sample
url can look like: http://localhost:8000/jokes?num=10 (Links to an
external site.) so in this case the user will get an array of 10
random jokes.
ps: please read the full question i want an external url to
contain the jokes which then are imported into the python app
through a variable with parameters. then i want them stored in a
list which will randomize them and print them out in json format
DONT COPY PASTE SOLUTIONS FROM OTHER QUESTIONS NONE OF THEM
WORK
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply