Skip to content

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:-)

License

Notifications You must be signed in to change notification settings

richard-o-wright/simpleJson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages