Closed ahonor closed 12 years ago
well a good point but all REST api for node are used. POST > save, GET > show, PUT > update, DELETE, delete
This is why its sent to a separate controller.
Since the import (and theoretically export) is for the whole model perhaps we should state the resource is 'model'. Eg.
curl --form yanaimport=@yana_import.xml "http://localhost:8080/api/model" --cookie cookies.txt
Well 'model' is a reserved keyword but just on the off chance i could be wrong i gave it a shot. Unfortunately I was right and it did not route properly and I had to revert.
Cant name a controller that.
Currently the URL to import XML is under /admin. Eg it currently is under /admin/savexml:
Proposed: