Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Räni authored Jan 10, 2019
2 parents 8850279 + 238349e commit bbb6d9a
Show file tree
Hide file tree
Showing 29 changed files with 218 additions and 39 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.messente.phonebook</groupId>
<artifactId>phonebook-java</artifactId>
<version>0.0.1</version>
<version>0.2.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -42,7 +42,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "com.messente.phonebook:phonebook-java:0.0.1"
compile "com.messente.phonebook:phonebook-java:0.2.0"
```

### Others
Expand All @@ -55,7 +55,7 @@ mvn clean package

Then manually install the following JARs:

* `target/phonebook-java-0.0.1.jar`
* `target/phonebook-java-0.2.0.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down Expand Up @@ -94,6 +94,13 @@ public class BlacklistApiExample {
// e.printStackTrace();
// }
//
// try {
// apiInstance.isBlacklisted("+37255555555");
// } catch (ApiException e) {
// System.err.println("Exception when calling isBlacklisted");
// e.printStackTrace();
// }
//
// try {
// apiInstance.removeFromBlacklist("+37255555555");
// } catch (ApiException e) {
Expand All @@ -112,6 +119,7 @@ Class | Method | HTTP request |
------------ | ------------- | ------------- |
*BlacklistApi* | [**addToBlacklist**](docs/BlacklistApi.md#addToBlacklist) | **POST** /phonebook/blacklist |
*BlacklistApi* | [**fetchBlacklist**](docs/BlacklistApi.md#fetchBlacklist) | **GET** /phonebook/blacklist |
*BlacklistApi* | [**isBlacklisted**](docs/BlacklistApi.md#isBlacklisted) | **GET** /phonebook/blacklist/{phone_number} |
*BlacklistApi* | [**removeFromBlacklist**](docs/BlacklistApi.md#removeFromBlacklist) | **DELETE** /phonebook/blacklist/{phone_number} |


Expand Down Expand Up @@ -140,4 +148,3 @@ It's recommended to create an instance of `ApiClient` per thread in a multithrea
## Author

messente@messente.com

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: 'maven'
apply plugin: 'maven-publish'

group = 'com.messente.phonebook'
version = '0.0.1'
version = '0.2.0'

repositories {
jcenter()
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "com.messente.phonebook",
name := "phonebook-java",
version := "0.0.1",
version := "0.2.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
58 changes: 56 additions & 2 deletions docs/BlacklistApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Method | HTTP request | Description
------------- | ------------- | -------------
[**addToBlacklist**](BlacklistApi.md#addToBlacklist) | **POST** /phonebook/blacklist |
[**fetchBlacklist**](BlacklistApi.md#fetchBlacklist) | **GET** /phonebook/blacklist |
[**isBlacklisted**](BlacklistApi.md#isBlacklisted) | **GET** /phonebook/blacklist/{phone_number} |
[**removeFromBlacklist**](BlacklistApi.md#removeFromBlacklist) | **DELETE** /phonebook/blacklist/{phone_number} |


Expand Down Expand Up @@ -107,6 +108,59 @@ This endpoint does not need any parameter.

[basicAuth](../README.md#basicAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

<a name="isBlacklisted"></a>
# **isBlacklisted**
> isBlacklisted(phoneNumber)


Checks if a phone number is blacklisted.

### Example
```java
// Import classes:
//import com.messente.ApiClient;
//import com.messente.ApiException;
//import com.messente.Configuration;
//import com.messente.auth.*;
//import com.messente.phonebook.BlacklistApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");

BlacklistApi apiInstance = new BlacklistApi();
String phoneNumber = "phoneNumber_example"; // String | A phone number
try {
apiInstance.isBlacklisted(phoneNumber);
} catch (ApiException e) {
System.err.println("Exception when calling BlacklistApi#isBlacklisted");
e.printStackTrace();
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**phoneNumber** | **String**| A phone number |

### Return type

null (empty response body)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

- **Content-Type**: Not defined
Expand Down Expand Up @@ -137,7 +191,7 @@ basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");

BlacklistApi apiInstance = new BlacklistApi();
String phoneNumber = "phoneNumber_example"; // String | The phone number to be deleted
String phoneNumber = "phoneNumber_example"; // String | A phone number
try {
apiInstance.removeFromBlacklist(phoneNumber);
} catch (ApiException e) {
Expand All @@ -150,7 +204,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**phoneNumber** | **String**| The phone number to be deleted |
**phoneNumber** | **String**| A phone number |

### Return type

Expand Down
2 changes: 1 addition & 1 deletion gen-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"artifactDescription": "Java client for Messente Phonebook API",
"artifactId": "phonebook-java",
"artifactUrl": "https://github.com/messente/messente-phonebook-java",
"artifactVersion": "0.0.1",
"artifactVersion": "0.2.0",
"developerEmail": "admin@messente.com",
"developerName": "Messente",
"developerOrganization": "Messente Communications",
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>phonebook-java</artifactId>
<packaging>jar</packaging>
<name>phonebook-java</name>
<version>0.0.1</version>
<version>0.2.0</version>
<url>https://github.com/messente/messente-phonebook-java</url>
<description>Java client for Messente Phonebook API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/ApiCallback.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/messente/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -99,15 +99,15 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/0.0.1/java");
setUserAgent("OpenAPI-Generator/0.2.0/java");

authentications = new HashMap<String, Authentication>();
}

/**
* Get base path
*
* @return Baes path
* @return Base path
*/
public String getBasePath() {
return basePath;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/ApiResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/GzipRequestInterceptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/ProgressRequestBody.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/ProgressResponseBody.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/auth/ApiKeyAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/auth/Authentication.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/auth/HttpBasicAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/auth/OAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/auth/OAuthFlow.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Phonebook API
* RESTful API for Messente phonebook
*
* OpenAPI spec version: 0.0.1
* OpenAPI spec version: 0.0.3
* Contact: messente@messente.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit bbb6d9a

Please # to comment.