Would it work on the port exposed by the JSON-RPC interface set in the bitcoin.conf? So for example: localhost:8332/rest/tx/TX-HASH?
Yes.
Would you have to set tx-index=1 to get transactions with all spent outputs? The same way the getrawtransaction works at the moment?
Yes.