-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (86 loc) · 2.95 KB
/
index.html
File metadata and controls
89 lines (86 loc) · 2.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
}
</style>
<title>Document</title>
</head>
<body>
<div class="container">
<section class="jumbotron text-center">
<h1>Node express mongodb api</h1>
<span class="badge badge-secondary">NodeJS</span>
<span class="badge badge-secondary">Express</span>
<span class="badge badge-secondary">mongodb</span>
<span class="badge badge-secondary">AWS codepipeline</span>
<span class="badge badge-secondary">AWS Elastic Beanstalk</span>
<p class="lead text-muted">Click on the buttons to check the api Data.</p>
<a href="/shoppingList" class="btn btn-success">Shopping List</a>
<a href="/todos" class="btn btn-success">Todo List</a>
</section>
<p>All api methods and path</p>
<table class="table table-striped table-sm">
<thead>
<tr>
<td>Name</td>
<td>Method</td>
<td> Path</td>
</tr>
</thead>
<tr>
<td>Show Product lists </td>
<td>GET </td>
<td>/shoppingList</td>
</tr>
<tr>
<td>Add new product </td>
<td>POST </td>
<td>/shoppingList/add</td>
</tr>
<tr>
<td>Get product by ID </td>
<td>GET </td>
<td>/shoppingList/:id</td>
</tr>
<tr>
<td>Delete product </td>
<td>DELETE </td>
<td>/delete/:id</td>
</tr>
<tr>
<td>Sort Productlist </td>
<td>GET </td>
<td>shoppingList/?sortBy=<kbd>field name</kbd>&orderBy=<kbd>asc/desc</kbd></td>
</tr>
<tr>
<td>------ </td>
<td>Todo Route </td>
<td>------</td>
</tr>
<tr>
<td>Show all todo list </td>
<td>GET </td>
<td>/todos</td>
</tr>
<tr>
<td>Show todo by id </td>
<td>GET </td>
<td>/todos/:id</td>
</tr>
<tr>
<td>update todo by id </td>
<td>POST </td>
<td>/update/:id</td>
</tr>
</table>
</div>
</body>
</html>