Skip to content

[Feature] Provide an interface API to get the executor #1453

@liangqilang

Description

@liangqilang

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Problem Description

The API supports the parameter "executeUser", but Linkis does not provide an interface for get the executor�, including the front-end system, which does not have this function.

API:/api/rest_j/v1/entrance/execute

后端接口支持传入"executeUser",但是系统没有提供获取执行者的接口,包括前端也不支持。

Description

I hope this system can provide an interface API to get the executor.

Use case

Describe the use case of your feature request.

@RequestMapping(path = "/getExecuteUserList",method = RequestMethod.GET,produces = {"application/json"})
public Message getExecuteUserList(HttpServletRequest req) throws IOException, WorkSpaceException {
String userName = SecurityFilter.getLoginUsername(req);
//get the executor
return;
}

solutions

To obtain the API of the ”executor“, my opinion is to provide an abstract interface, and the implementation can be developed by each user according to the actual situation.
获取执行者用户的API,我意见是提供一个抽象接口,具体实现由各个用户根据自动实际情况开发即可。

Anything else

Which module should provide this api?

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions