Started adding database logic. Can now add book to shelf and get list of books that are checked in.

This commit is contained in:
dan
2021-06-08 10:45:44 -04:00
parent 93a9430d3b
commit 4d117ca4ac
3 changed files with 93 additions and 10 deletions

View File

@@ -1,5 +1,34 @@
<form action="http://127.0.0.1:8000/lookup" method="POST">
<label for="isbn"> </label>
<input name="isbn" id="isbn" value=" ">
<div>
<b>Local Testing</b>
<br>
<form action="http://127.0.0.1:8000/lookup" method="POST">
<label for="isbn">ISBN Title Lookup<br></label>
<input name="isbn" id="isbn" value=" ">
<button>Submit</button>
</form>
<form action="http://127.0.0.1:8000/checkin" method="POST">
<label for="isbn">Add Book<br></label>
<input name="isbn" id="isbn" value=" ">
<button>Submit</button>
</form>
</form>
<form action="http://127.0.0.1:8000/getbooks/1" method="GET">
<button>Get Books</button>
</form>
</div>
<div>
<b>Remote Testing</b>
<form action="http://library.dandhost.com/lookup" method="POST">
<label for="isbn">ISBN Title Lookup<br></label>
<input name="isbn" id="isbn" value=" ">
<button>Submit</button>
</form>
<form action="http://library.dandhost.com/checkin" method="POST">
<label for="isbn">Add Book<br></label>
<input name="isbn" id="isbn" value=" ">
<button>Submit</button>
</form>
<form action="http://library.dandhost.com/getbooks/1" method="GET">
<button>Get Books</button>
</form>
</div>