Log in to the related interface, which is effective for both HTTP access and WebSocket access of the upper system
Linkis defines its own set of interface specifications when interacting between the front and back ends.
If you are interested in the interface specification, please click here view interface specification
Enter the linkis-gateway/conf directory and execute the command:
vim linkis.properties
Turn on the test mode, the parameters are as follows:
wds.linkis.test.mode=true # Turn on test mode wds.linkis.test.user=enjoyyin # Specify which user all requests are delegated to in test mode
We provide the following login-related interfaces:
Interface /api/rest_j/v1/user/login
Submission method POST
{ "userName": "", "password": "" }
{ "method": "/api/rest_j/v1/user/login", "status": 0, "message": "OK", "data": { "isAdmin": false, "loginNum": 5, "userName": "enjoyyin", "lastLoginTime": 1722222222222 } }
Interface /api/rest_j/v1/user/logout
Submission method POST
No parameters
Return to example
{ "method": "/api/rest_j/v1/user/logout", "status": 0, "message": "Logout successfully!" }
Interface /api/rest_j/v1/user/heartbeat
Submission method POST
No parameters
Return to example
{ "method": "/api/rest_j/v1/user/heartbeat", "status": 0, "message": "Maintaining the heartbeat success!" }