Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Built-in functions in parameters of a request body #1438

Open
seokho-son opened this issue Feb 14, 2024 · 0 comments
Open

Support Built-in functions in parameters of a request body #1438

seokho-son opened this issue Feb 14, 2024 · 0 comments
Assignees
Labels
feature request Issue related with new feature

Comments

@seokho-son
Copy link
Member

What would you like to be added

REST API는 주로 단일 리소스에 대해 CRUD하기 위해 입력/출력 단위로 동작하므로,
특정 작업을 하기 위해서 여러가지 API를 순차적으로 실행해야 하는 비효율적인 상황이 발생할 수 있음.

예를 들어,
특정 API 실행을 위해서 동적으로 생성되는 IP 주소를 입력하려면,
IP 주소 조회 API 수행을 선행해야 함.

API의 request body 의 key:value set에서 value 에 해당하는 값에 내장함수(특정 조건의 리소스 ID 조회 기능 등)를 표시할 수 있다면,
API의 활용도가 높아질 것으로 판단됨.


(구현 방법)

  • CB-TB 변수 정의 및 개발
  • 내장함수 구현 (기본: 리소스 아이디 리턴, IP 리턴 등)
  • Value Type이 string인 경우, 해당 값에 내장함수 표현이 있는지 확인하고, 내장함수가 있는 경우 함수 수행 및 Text를 치환하여, 기존 기능 수행

(적용 대상)

  • 1차: 원격 커맨드에 우선 적용 (사용자 커맨드 적용 VM의 IP조회 내장함수 적용)
@seokho-son seokho-son added the feature request Issue related with new feature label Feb 14, 2024
@seokho-son seokho-son self-assigned this Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issue related with new feature
Projects
None yet
Development

No branches or pull requests

1 participant