Skip to content

forceRef to recurse calls #926

@the42

Description

@the42

Can httpyac be used to recusivelly make calls? in the line of:

###
@dstanchor=4144


###
# @name dstbc
GET /employee-businesscards/department/internal/{{dstanchor}}

###
# @name dstchilds
GET /departments/internal/{{dstanchor}}/children

###
# @ref dstchilds
# @loop for item of dstchilds
@dstanchor={{item.departmentId}}
# @ forceRef dstbc
# @ forceRef dstchilds

What I want to achieve is:

  • Get the details of a department
  • Get the children of a department
  • Iterate over the childen: set a variable and force a re-evaluation

If not by this way:

  • Would I use a script?
  • Better to write some helper code in whatever scripting language?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions