Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 717 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 717 Bytes

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>