-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask.http
42 lines (40 loc) · 1.08 KB
/
task.http
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
// Petición de REST API Client
###
GET http://localhost:5000/api/tasks
###
// Guardar datos con una peticion POST
POST http://localhost:5000/api/tasks
// Enviar datos a travez de una peticion POST
Content-Type: application/json
{
"title": "Test 9",
"description": "Hacer una REST API",
"done": "true"
}
###
// Solicitar un dato por el id como parametro
GET http://localhost:5000/api/tasks/63fbd5c221bd52252ffffe41
###
// Actualizar un dato por el id como parametro
PUT http://localhost:5000/api/tasks/63fbe9aa39c0d3f275b5c9df
Content-Type: application/json
{
"title": "Test 8",
"description": "Ver False",
"done": "false"
}
###
// Eliminar un dato por el id como parametro
DELETE http://localhost:5000/api/tasks/63fbe216ccea6c5a7adcd1ab
###
// Mostrar todas las tareas que tengan la propiedad "done : true"
GET http://localhost:5000/api/tasks/done
###
// Consultas
GET http://localhost:5000/api/tasks/?page=0&size=3
###
GET http://localhost:5000/api/tasks/?page=2&size=3
###
GET http://localhost:5000/api/tasks/?page=3&size=3
###
GET http://localhost:5000/api/tasks/?page=0&size=3&title=test