-
Notifications
You must be signed in to change notification settings - Fork 30
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
How to dynamically set Method type and content of a request #54
Comments
hi, does that solve your problem? regards |
Hi andreasmihm, Thank you for your kind reply. I am trying to automate some REST services. Some of them are GET HTTP and POST HTTP, which takes json as an input. I am putting all my efforts below- Here is the code link (http://ideone.com/plain/uinDuZ) or you can have a look below- @RunWith(HttpJUnitRunner.class)
} My points questions are below- Regards |
please update the maven repo. there is no image of master branch. |
I am newbie here. I have below two questions.
(1) How to set Method type without annotation? Is there any such method which can set the request method i.e. POST/GET?
(2) Most of our REST service, take JSON data as input. How I can set this JSON data without annotation? Since I need to pass these JSON data from an external file dynamically,so I can't use annotation. I saw a sample code here (https://github.com/andreasmihm/restfuse/blob/master/com.eclipsesource.restfuse.example/src/com/eclipsesource/restfuse/example/DynamicBodyTest.java) but I am using latest build of restfuse and unable to get RequestContext.setDynamicBody(String) method.
Please help.
The text was updated successfully, but these errors were encountered: