Final Flashcards
What are the 2 HTTP methods that are NOT part of a CRUD API?
PATCH & OPTIONS
What command did you run to start the Django built-in server?
python manage.py runserver
The data used to import the book data into the books_book database was in what format?
JSON
What Pandas command was frequently used in our labs to read a CSV file into a DataFrame?
pd.read_csv()
When you create a new repository on GitHub, what is the default branch name for the new repository?
main
Once your books Django web application code is complete and the server is started, what is the result if you open this URL in your browser?
http://localhost:8000/admin/books/book/
The Django administration page for Books is displayed showing the “Select book to change” page
When working with code for your CSC221__GroupProject repository on GitHub, what command could you use to show modified files in your working directory?
git status
What command line tool did you use in the Django REST framework lab to view your databases books_book table, schema, and contents?
sqlite3
Web crawlers are used to:
extract information from a web page, and use the links on each web page to go through every other page on a website
What relatively new REST API framework has gained the most popularity in recent years?
FastAPI
When converting the class_books file to the format required for the Django import data file, what key:value pairs were copied from the original file for each book entry?
- rank
- title
- author
- year
Using the REST API created in Lab 11, the following HTTP command results in what behavior?
GIVEN: There are only 30 books in the database and no additional ID values have been generated.
http PUT “:8000/books/api/45/” rank=45 title=”David Copperfield” author=”Charles Dickens” year=1849
None of the above -
The book was not added to or updated in database, or removed from the database
The only book added was The Count of Monte Cristo, the book that was updated was also The Count of Monte Cristo
What import statement was required to use a library helpful in parsing webpage HTML?
from bs4 import BeautifulSoup
What command did you run to create a new Django app named books?
python manage.py startapp books
Once your books Django web application code is complete and the server is started, what is the result if you open this URL in your browser?
http://localhost:8000/admin/
The “Classic Books List” page is displayed