fix: sync index.html with demo, update query strings example and favicon (#53)
* fix: remove unnecessary & from query string * fix: sync with demo project index.html file * fix: update favicon * fix: update date input id
This commit is contained in:
parent
9eb0d63d53
commit
55797155b7
@ -2,9 +2,9 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Exercise Tracker | freeCodeCamp</title>
|
<title>Exercise Tracker | freeCodeCamp</title>
|
||||||
<link rel="shortcut icon" href="https://cdn.freecodecamp.org/universal/favicons/favicon-32x32.png" type="image/x-icon"/>
|
<link rel="shortcut icon" href="https://cdn.freecodecamp.org/universal/favicons/favicon.ico" type="image/x-icon" />
|
||||||
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" type="text/css">
|
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" type="text/css" />
|
||||||
<link href="style.css" rel="stylesheet" type="text/css">
|
<link href="style.css" rel="stylesheet" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@ -13,21 +13,21 @@
|
|||||||
<form action="/api/users" method="post">
|
<form action="/api/users" method="post">
|
||||||
<h3>Create a New User</h3>
|
<h3>Create a New User</h3>
|
||||||
<p><code>POST /api/users</code></p>
|
<p><code>POST /api/users</code></p>
|
||||||
<input id="uname" type="text" name="username" placeholder="username">
|
<input id="uname" type="text" name="username" placeholder="username" />
|
||||||
<input type="submit" value="Submit">
|
<input type="submit" value="Submit" />
|
||||||
</form>
|
</form>
|
||||||
<form id="exercise-form" method="post">
|
<form id="exercise-form" method="post">
|
||||||
<h3>Add exercises</h3>
|
<h3>Add exercises</h3>
|
||||||
<p><code>POST /api/users/:_id/exercises</code></p>
|
<p><code>POST /api/users/:_id/exercises</code></p>
|
||||||
<input id="uid" type="text" name=":_id" placeholder=":_id">
|
<input id="uid" type="text" name=":_id" placeholder=":_id" />
|
||||||
<input id="desc" type="text" name="description" placeholder="description*">
|
<input id="desc" type="text" name="description" placeholder="description*" />
|
||||||
<input id="dur" type="text" name="duration" placeholder="duration* (mins.)">
|
<input id="dur" type="text" name="duration" placeholder="duration* (mins.)" />
|
||||||
<input id="dat" type="text" name="date" placeholder="date (yyyy-mm-dd)">
|
<input id="date" type="text" name="date" placeholder="date (yyyy-mm-dd)" />
|
||||||
<input type="submit" value="Submit">
|
<input type="submit" value="Submit" />
|
||||||
</form>
|
</form>
|
||||||
<p>
|
<p>
|
||||||
<strong>GET user's exercise log: </strong>
|
<strong>GET user's exercise log: </strong>
|
||||||
<code>GET /api/users/:_id/logs?[&from][&to][&limit]</code>
|
<code>GET /api/users/:_id/logs?[from][&to][&limit]</code>
|
||||||
</p>
|
</p>
|
||||||
<p><strong>[ ]</strong> = optional</p>
|
<p><strong>[ ]</strong> = optional</p>
|
||||||
<p><strong>from, to</strong> = dates (yyyy-mm-dd); <strong>limit</strong> = number</p>
|
<p><strong>from, to</strong> = dates (yyyy-mm-dd); <strong>limit</strong> = number</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user