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 communicating with restful APIs #9

Closed
niuxuetao opened this issue Apr 7, 2015 · 1 comment
Closed

Support communicating with restful APIs #9

niuxuetao opened this issue Apr 7, 2015 · 1 comment
Assignees
Milestone

Comments

@niuxuetao
Copy link
Owner

Introduce <rest> tag , example of pulling "rotten tomatoes" movie list

<rest id="res" verb="get"
        address="http://api.rottentomatoes.com/api/public/v1.0/movies.json?q=love&amp;page_limit=11&amp;page=1&amp;apikey=${apiKey}" />
    <print>Rotten Tomatoes</print>
    <print><toXml>${res}</toXml></print>
    <!-- traverse the response -->
    <iterate list="${res.body.movies}">
        <print>${var.title} (${var.year}) ${var.ratings.audience_score}</print>
    </iterate>
@niuxuetao niuxuetao self-assigned this Apr 7, 2015
@niuxuetao niuxuetao added this to the 1.8 milestone Apr 7, 2015
@niuxuetao niuxuetao changed the title Support communicating restful APIs Support communicating with restful APIs Apr 7, 2015
@niuxuetao
Copy link
Owner Author

added in 1.8 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant