-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwelcome.blade.php
119 lines (110 loc) · 4.03 KB
/
welcome.blade.php
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html>
<head>
<title>Kleinpas API</title>
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
<style>
body {
font-family: Arial, sans-serif;
line-height: 150%;
}
#content {
width: 960px;
margin: 0 auto;
}
h1 {
text-align: center;
font-family: 'Lato', Arial, sans-serif;
font-size: 3rem;
border-bottom: 1px solid #555;
padding-bottom: 40px;
width: 80%;
margin: 50px 10%;
}
table {
border: 1px solid #b6b6b6;
border-collapse: collapse;
font-family: Arial, sans-serif;
}
tr.top {
font-weight: bolder;
background: #ebebeb;
}
tr:nth-child(even) { background: #fafafa; }
tr.top td { border: 0; }
td {
border-right: 1px solid #ebebeb;
padding: 10px 20px;
}
p.quote {
background: #f4f4f4;
border-radius: 10px;
padding: 20px;
font-family: Courier, Arial, serif;
}
p.quote strong { color: red; }
</style>
</head>
<body>
<div id="content">
<h1>Kleinpas API</h1>
<h2>GET</h2>
<p>
<strong>getEvents</strong>: Gets all the events.<br>
Returns: id, phonenumber, email, date, start and end.
</p>
<p class="quote">
 var settings = {<br>
  "crossDomain": true,<br>
  "url": "http://95.85.15.210:4000/events",<br>
  "method": "GET"<br>
 }<br>
<br>
 $.ajax(settings).done(function (response) {<br>
  console.log(JSON.parse(response));<br>
 });
</p>
<p>
<strong>getEvent</strong>: Gets the event with a certain ID.<br>
Returns: id, phonenumber, email, date, start and end.
</p>
<p class="quote">
 var settings = {<br>
  "crossDomain": true,<br>
  "url": "http://95.85.15.210:4000/events/<strong>ID</strong>",<br>
  "method": "GET"<br>
 }<br>
<br>
 $.ajax(settings).done(function (response) {<br>
  console.log(JSON.parse(response));<br>
 });
</p>
<h2>POST</h2>
<p>
<strong>getEvents</strong>: Gets all the events.<br>
Returns: id, phonenumber, email, date, start and end.
</p>
<p class="quote">
var settings = {<br>
 "crossDomain": true,<br>
 "url": "http://95.85.15.210:4000/add",<br>
 "method": "POST",<br>
 "headers": {<br>
  "content-type": "application/x-www-form-urlencoded"<br>
 },<br>
 "data": {<br>
  "email": "<strong>EMAIL</strong>",<br>
  "phonenumber": "<strong>PHONENUMBER</strong>",<br>
  "date": "<strong>DATE</strong>",<br>
  "start": "<strong>START</strong>",<br>
  "end": "<strong>END</strong>"<br>
 }<br>
}<br>
<br>
$.ajax(settings).done(function (response) {<br>
 console.log(response);<br>
});
</p><h1></h1><br><br><br><br><br>
</div>
</body>
</html>