alessandro trinca tornidor
commited on
Commit
·
297b115
1
Parent(s):
61f0a51
doc: add example request
Browse files- README.md +2 -0
- events/payload_point_colico.json +25 -0
README.md
CHANGED
|
@@ -90,6 +90,8 @@ Test it with curl using a json payload:
|
|
| 90 |
```bash
|
| 91 |
URL=http://localhost:7860/infer_samgis
|
| 92 |
curl -d@./events/payload_point_eolie.json -H 'content-type: application/json' ${URL}
|
|
|
|
|
|
|
| 93 |
```
|
| 94 |
|
| 95 |
or better visiting the swagger page on <http://localhost:7860/docs>
|
|
|
|
| 90 |
```bash
|
| 91 |
URL=http://localhost:7860/infer_samgis
|
| 92 |
curl -d@./events/payload_point_eolie.json -H 'content-type: application/json' ${URL}
|
| 93 |
+
# or:
|
| 94 |
+
curl -d@./events/payload_point_colico.json -H 'content-type: application/json' ${URL}
|
| 95 |
```
|
| 96 |
|
| 97 |
or better visiting the swagger page on <http://localhost:7860/docs>
|
events/payload_point_colico.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bbox": {
|
| 3 |
+
"ne": {
|
| 4 |
+
"lat": 46.26035698328798,
|
| 5 |
+
"lng": 9.551239013671877
|
| 6 |
+
},
|
| 7 |
+
"sw": {
|
| 8 |
+
"lat": 46.11037360219254,
|
| 9 |
+
"lng": 9.227142333984377
|
| 10 |
+
}
|
| 11 |
+
},
|
| 12 |
+
"prompt": [
|
| 13 |
+
{
|
| 14 |
+
"id": 189,
|
| 15 |
+
"type": "point",
|
| 16 |
+
"data": {
|
| 17 |
+
"lat": 46.2012060047581,
|
| 18 |
+
"lng": 9.444708128356034
|
| 19 |
+
},
|
| 20 |
+
"label": 1
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"zoom": 12,
|
| 24 |
+
"source_type": "OpenStreetMap.HOT"
|
| 25 |
+
}
|