eclipsesource / eclipsesource/restfuse

Can't use a runtime variable as part of request path

Open
#41 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
95
Forks
28
PR merge metrics
No merged PRs in 30d

Description

I love how easy it is to use restfuse, but with the annotation-based approach, I don't see a way to use a variable I set at runtime as a segment in a rest request. For example, I want to perform this workflow:
1. Make a query call that returns a set of entity ids.
2. Save one of the ids from that call in an instance variable.
3. Make a "get entity by id" call that uses my variable as part of the URL. For example:
@HttpTest( method = Method.GET, path = "/entity/Candidate/{id}" )

The {id} segment would resolve to the variable I set at runtime, but it can't since the annotation gets read at compile time.

This is easy to do in SoapUI, but I'm looking at lighter weight tools like restfuse.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.