public class ProjectKeyAndNameValidationApi extends Object
| Constructor and Description |
|---|
ProjectKeyAndNameValidationApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<String> |
getValidProjectKey(Optional<String> key,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get valid project key
Validates a project key and, if the key is invalid or in use, generates a valid random string for the project key.
|
io.reactivex.Single<String> |
getValidProjectName(String name,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get valid project name
Checks that a project name isn't in use.
|
io.reactivex.Single<ErrorCollection> |
validateProjectKey(Optional<String> key,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Validate project key
Validates a project key by confirming the key is a valid string and not in use.
|
public ProjectKeyAndNameValidationApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<String> getValidProjectKey(Optional<String> key, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
key - The project key. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<String> getValidProjectName(String name, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
name - The project name. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<ErrorCollection> validateProjectKey(Optional<String> key, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
key - The project key. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.