-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDocumentacionAPI.json
115 lines (115 loc) · 2.27 KB
/
DocumentacionAPI.json
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
{
"info": {
"_postman_id": "4d65d830-b16a-4016-9388-34e906a3ae35",
"name": "BUDA-Spreads",
"description": "Documentación para Tarea 1 Buda.com",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "21211119"
},
"item": [
{
"name": "GET ALL SPREADS",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/api/spreads",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"spreads"
]
},
"description": "API_URL/api/spreads\n\nRuta que entrega todos los spreads"
},
"response": []
},
{
"name": "GET SPREAD BY MARKET ID",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/api/spread/{{market_id}}",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"spread",
"{{market_id}}"
]
},
"description": "API_URL/api/spread/:market_id\n\nruta que entrega el sprea según market id"
},
"response": []
},
{
"name": "POST SPREAD ALERT",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"spread\": 25000\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{API_URL}}/api/spread/alert/{{market_id}}",
"host": [
"{{API_URL}}"
],
"path": [
"api",
"spread",
"alert",
"{{market_id}}"
]
},
"description": "API_URL/api/spread/alert/:market_id\n\nruta para guardar un spread de alerta"
},
"response": []
},
{
"name": "GET SPREAD ALERTS",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{API_URL}}/api/spread/alert/{{market_id}}",
"host": [
"{{API_URL}}"
],
"path": [
"api",
"spread",
"alert",
"{{market_id}}"
]
},
"description": "API_URL/api/spread/alert/:market_id\n\nRuta para consultar el spread actual mediante polling."
},
"response": []
}
],
"variable": [
{
"key": "market_id",
"value": "BTC-CLP"
},
{
"key": "API_URL",
"value": "http://localhost:8080"
}
]
}