Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions documentation/readme3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Creating a new branch to try to add a button to the web page.
2 changes: 2 additions & 0 deletions documentation/readme_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
I am writing an intro to my programme.
You can read more about it here, where it is clearly succinct and well-written.
20 changes: 13 additions & 7 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
<body>
<div class="container-sm px-4">
<div class="row gx-5">
<h1>REST Application</h1>
<h1>Rhys' REST Application</h1>
<div class="col-6">
<form class="mb-2">
<h2>Create</h2>
<input type="text" id="inputName" class="form-control" placeholder="enter item name to create" />
<input type="text" id="inputDescription" class="form-control mt-2" placeholder="enter item description to create" />
<input type="number" id="inputPrice" class="form-control mt-2" placeholder="enter item price to create" />
<input type="text" id="inputDescription" class="form-control mt-2"
placeholder="enter item description to create" />
<input type="number" id="inputPrice" class="form-control mt-2"
placeholder="enter item price to create" />
<button type="button" class="btn btn-primary mt-2" id="buttonCreate">POST</button>
<input type="text" style="display: none;" />
</form>
Expand All @@ -29,10 +31,14 @@ <h2>Read One</h2>

<form class="mb-2">
<h2>Update</h2>
<input type="number" id="inputUpdateID" class="form-control" placeholder="enter id of item to update" />
<input type="text" id="inputUpdateName" class="form-control mt-2" placeholder="enter name of item to update" />
<input type="text" id="inputUpdateDescription" class="form-control mt-2" placeholder="enter description of item to update" />
<input type="number" id="inputUpdatePrice" class="form-control mt-2" placeholder="enter price of item to update" />
<input type="number" id="inputUpdateID" class="form-control"
placeholder="enter id of item to update" />
<input type="text" id="inputUpdateName" class="form-control mt-2"
placeholder="enter name of item to update" />
<input type="text" id="inputUpdateDescription" class="form-control mt-2"
placeholder="enter description of item to update" />
<input type="number" id="inputUpdatePrice" class="form-control mt-2"
placeholder="enter price of item to update" />
<button type="button" class="btn btn-primary mt-2" id="buttonUpdate">PUT</button>
</form>

Expand Down