Skip to content
main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

simpleJson

Simple Java RestClient for all your Restful needs.

Usage Example

  Map<String, String> params = new HashMap<>();
  params.put("key", "Value");
  URL url = SimpleRestClient.buildUrl("https://example.com", "example/uri", params);
  SimpleRestClient restClient = new SimpleRestClient();

  AuthHeader authHeader = new AuthHeader(AuthHeader.Type.OAuth, mytoken);
  MyResponse response = restClient.post(url, authHeader, requestBody, MyResponse.class);

Get and post with response bodys are also supported.

How to add to your project as Maven dependency:

<dependency>
	<groupId>net.wrightnz.simple</groupId>
	<artifactId>simplejson</artifactId>
	<version>0.1.5</version>
</dependency>

About

Simple Java Restful Client for all your Restful needs. Depends of Google Gson. Thanks Google for keeping things simple too, at least for that dependency:-)

Topics

Resources

License

Releases

No releases published

Languages