blob: fe0578f440d3a9830d2e5a6db6ed6d4244714d43 (
plain)
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
|
tasks:
- name: POST simple con campos planos
module: api
args:
method: post
url: https://reqres.in/api/users
body: |
{"name":"Luis","job":"ShFlow tester"}
headers: x-api-key:reqres-free-v1,Content-Type:application/json
parse: json
- name: POST con estructura anidada
module: api
args:
method: post
url: https://httpbin.org/post
body: |
{
"title": "Test",
"tags": ["bash", "api", "flow"],
"meta": {
"author": "Luis",
"version": "1.0"
}
}
headers: Content-Type:application/json
parse: json
- name: POST con cuerpo vacío
module: api
args:
method: post
url: https://httpbin.org/post
body: ""
headers: Content-Type:application/json
parse: json
- name: POST con caracteres especiales
module: api
args:
method: post
url: https://httpbin.org/post
body: |
{"mensaje":"¡Hola desde ShFlow! 🎉 Ñandú con tilde y ñ"}
headers: Content-Type:application/json
parse: json
- name: POST con array de objetos
module: api
args:
method: post
url: https://httpbin.org/post
body: |
{
"usuarios": [
{"nombre": "Luis", "rol": "admin"},
{"nombre": "Ana", "rol": "tester"}
]
}
headers: Content-Type:application/json
parse: json
|