Open sirex opened 1 month ago
data.xml:
data.xml
<?xml version="1.0" encoding="UTF-8"?> <cities> <city id="1">Vilnius</city> <city id="2">Kaunas</city> </cities>
dsa.txt:
dsa.txt
d | r | m | property | type | ref | source | prepare | level | access datasets/example | | | | | | | resource1 | xml | | data.xml | | | | | City | | id | /cities/city | | 4 | | | | id | integer | | @id | | 4 | open | | | name@lt | string | | text() | | 4 | open
spinta run --mode external dsa.txt &>> spinta.log & ; PID=$! http :8000/datasets/example/City
HTTP/1.1 200 OK content-type: application/json { "_data": [ { "_id": "228315df-4b51-42a8-a4ac-ef6dd106452d", "_revision": null, "_type": "datasets/example/City", "id": 1, "name": null }, { "_id": "8cc2c267-8516-47b5-b4ac-e27500c41d69", "_revision": null, "_type": "datasets/example/City", "id": 2, "name": null } ] }
name should be:
name
{ "name": {"lt": "Vilnius"} }
data.xml
:dsa.txt
:name
should be: