Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
GET http://localhost:8080/org.talend.administrator/metaServlet HTTP/1.1
Host: localhost:8080
Content-Type: application/json; charset=utf-8
Content-Length: 68
{ "actionName": "listTasks","authPass": "pass","authUser": "admin" }
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 41
Date: Tue, 01 Jul 2014 13:56:44 GMT
{"error":"Query is empty","returnCode":2}
For users who want to use metaServlet as a Web API, note that the typical URL generated by your requests reads
as follows:
localhost:8080/<ApplicationPath>/metaServlet?<UserRequest>, for example
http://localhost:8080/org.talend.administrator/metaServlet?
eyJhY3Rpb25OYW1lIjoiaGVscCIsImNvbW1hbmROYW1lIjoidXNlckV4aXN0In0=
{"actionName":"help","commandName":"userExist"}
There is no further explaination about this format anywhere, but on a wild guess, I put this through a base64 decoder and this translates to
{"actionName":"help","commandName":"userExist"}
So the JSON format specified in the help of metaServlet needs to be base64 encoded as a query string in the HTTP request.
I hope this helps someone else, because the documentation is rather unclear in my opinion.