Login Api
Log in to the related interface, which is effective for both HTTP access and WebSocket access of the upper system
1 Linkis interface specification#
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
2 How to achieve login-free#
Enter the linkis-gateway/conf directory and execute the command:
vim linkis.propertiesTurn 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 mode3 Login interface summary#
We provide the following login-related interfaces:
- Log in
- Sign out -Heartbeat
4 Interface details#
4.1 Login#
Interface
/api/rest_j/v1/user/loginSubmission method
POST
{ "userName": "", "password": "" }- Return to example
{ "method": "/api/rest_j/v1/user/login", "status": 0, "message": "OK", "data": { "isAdmin": false, "loginNum": 5, "userName": "enjoyyin", "lastLoginTime": 1722222222222 } }4.2 Logout#
Interface
/api/rest_j/v1/user/logoutSubmission method
POSTNo parameters
Return to example
{ "method": "/api/rest_j/v1/user/logout", "status": 0, "message": "Logout successfully!" }4.3 Heartbeat#
Interface
/api/rest_j/v1/user/heartbeatSubmission method
POSTNo parameters
Return to example
{ "method": "/api/rest_j/v1/user/heartbeat", "status": 0, "message": "Maintaining the heartbeat success!" }