-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
98 lines (96 loc) · 2.63 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<!--Documentación de la API usando HTML y CSS-->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>API - Pruebas</title>
<link rel="stylesheet" href="assets/estilo.css" type="text/css">
</head>
<body>
<div class="container">
<h1>Api de pruebas</h1>
<div class="divbody">
<h3>Auth - login</h3>
<code>
POST /auth
<br>
{
<br>
"usuario" :"", -> REQUERIDO
<br>
"password": "" -> REQUERIDO
<br>
}
</code>
</div>
<div class="divbody">
<h3>Pacientes</h3>
<code>
GET /pacientes?page=$numeroPagina
<br>
GET /pacientes?id=$idPaciente
</code>
<code>
POST /pacientes
<br>
{
<br>
"nombre" : "", -> REQUERIDO
<br>
"curp" : "", -> REQUERIDO
<br>
"correo":"", -> REQUERIDO
<br>
"codigoPostal" :"",
<br>
"genero" : "",
<br>
"telefono" : "",
<br>
"fechaNacimiento" : "",
<br>
"token" : "" -> REQUERIDO
<br>
}
</code>
<code>
PUT /pacientes
<br>
{
<br>
"nombre" : "",
<br>
"curp" : "",
<br>
"correo":"",
<br>
"codigoPostal" :"",
<br>
"genero" : "",
<br>
"telefono" : "",
<br>
"fechaNacimiento" : "",
<br>
"token" : "" , -> REQUERIDO
<br>
"pacienteId" : "" -> REQUERIDO
<br>
}
</code>
<code>
DELETE /pacientes
<br>
{
<br>
"token" : "", -> REQUERIDO
<br>
"pacienteId" : "" -> REQUERIDO
<br>
}
</code>
</div>
</div>
</body>
</html>