Initial commit from Gomix.
This commit is contained in:
		
							parent
							
								
									17976f47c9
								
							
						
					
					
						commit
						b344f20ff0
					
				
					 8 changed files with 300 additions and 2 deletions
				
			
		
							
								
								
									
										35
									
								
								views/index.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								views/index.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,35 @@ | |||
| <!DOCTYPE html> | ||||
| <html> | ||||
| 
 | ||||
|    <head> | ||||
|       <title>Exercise Tracker | Free Code Camp</title> | ||||
|       <link rel="shortcut icon" href="https://cdn.hyperdev.com/us-east-1%3A52a203ff-088b-420f-81be-45bf559d01b1%2Ffavicon.ico" type="image/x-icon"/> | ||||
|       <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" type="text/css"> | ||||
|       <link href="style.css" rel="stylesheet" type="text/css"> | ||||
|    </head> | ||||
| 
 | ||||
|    <body> | ||||
|       <div class="container"> | ||||
|          <h1>Exercise tracker</h1> | ||||
|           <form action="/api/exercise/new-user" method="post"> | ||||
|             <h3>Create a New User</h3> | ||||
|             <p><code>POST /api/exercise/new-user</code></p> | ||||
|             <input id="uname" type="text" name="username" placeholder="username"> | ||||
|             <input type="submit" value="Submit"> | ||||
|           </form> | ||||
|           <form action="/api/exercise/add" method="post"> | ||||
|             <h3>Add exercises</h3> | ||||
|             <p><code>POST /api/exercise/add</code></p> | ||||
|             <input id="uid" type="text" name="userId" placeholder="userId*"> | ||||
|             <input id="desc" type="text" name="description" placeholder="description*"> | ||||
|             <input id="dur" type="text" name="duration" placeholder="duration* (mins.)"> | ||||
|             <input id="dat" type="text" name="date" placeholder="date (yyyy-mm-dd)"> | ||||
|             <input type="submit" value="Submit"> | ||||
|           </form> | ||||
|           <p><strong>GET users's exercise log: </strong><code>GET /api/exercise/log?{userId}[&from][&to][&limit]</code></p> | ||||
|           <p><strong>{ }</strong> = required, <strong>[ ]</strong> = optional</p> | ||||
|           <p><strong>from, to</strong> = dates (yyyy-mm-dd); <strong>limit</strong> = number</p> | ||||
|       </div> | ||||
|    </body> | ||||
| 
 | ||||
| </html> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue