Closed hannesa2 closed 10 years ago
Hi, as a workaround you could define the last part as a segment:
get getVal /api/resource_name:String {
response {
created:String
}
}
then just pass in "1.js" as the segment during construction of the request.
Also it is possible to override the construction of the URL for:
public class GetValRequest extends ServiceRequest {
private static String PATH = "/api/x1.js";
…
@Override
public String createUrl(String baseUrl){
Uri.Builder uriBuilder = Uri.parse(baseUrl + PATH).buildUpon();
return uriBuilder.toString();
}
}
Just subclass AdaptedGetValRequest extends GetVallRequest
and override createUrl(...).
awesome !
get getVal /api/resource_name:String {
is perfect for me.
Thank you !
I've to communicate with an service like
Problem 1: MechNet can't handle leading numbers
to fix Problem1, Problem 2 is blocking: the url is not changeable during runtime, how to change PATH ?:
The best would be a solution for problem2, but I see one workaround: can MechNet use a local file for source ? eg