|
| 1 | +# OpenAPIClient-php |
| 2 | + |
| 3 | +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
| 4 | + |
| 5 | + |
| 6 | +## Installation & Usage |
| 7 | + |
| 8 | +### Requirements |
| 9 | + |
| 10 | +PHP 7.4 and later. |
| 11 | +Should also work with PHP 8.0. |
| 12 | + |
| 13 | +### Composer |
| 14 | + |
| 15 | +To install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`: |
| 16 | + |
| 17 | +```json |
| 18 | +{ |
| 19 | + "repositories": [ |
| 20 | + { |
| 21 | + "type": "vcs", |
| 22 | + "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" |
| 23 | + } |
| 24 | + ], |
| 25 | + "require": { |
| 26 | + "GIT_USER_ID/GIT_REPO_ID": "*@dev" |
| 27 | + } |
| 28 | +} |
| 29 | +``` |
| 30 | + |
| 31 | +Then run `composer install` |
| 32 | + |
| 33 | +### Manual Installation |
| 34 | + |
| 35 | +Download the files and include `autoload.php`: |
| 36 | + |
| 37 | +```php |
| 38 | +<?php |
| 39 | +require_once('/path/to/OpenAPIClient-php/vendor/autoload.php'); |
| 40 | +``` |
| 41 | + |
| 42 | +## Getting Started |
| 43 | + |
| 44 | +Please follow the [installation procedure](#installation--usage) and then run the following: |
| 45 | + |
| 46 | +```php |
| 47 | +<?php |
| 48 | +require_once(__DIR__ . '/vendor/autoload.php'); |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | +$apiInstance = new OpenAPI\Client\Api\QueueApi( |
| 54 | + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. |
| 55 | + // This is optional, `GuzzleHttp\Client` will be used as default. |
| 56 | + new GuzzleHttp\Client() |
| 57 | +); |
| 58 | +$publish_message_params = new \OpenAPI\Client\Model\PublishMessageParams(); // \OpenAPI\Client\Model\PublishMessageParams |
| 59 | + |
| 60 | +try { |
| 61 | + $result = $apiInstance->publishMessage($publish_message_params); |
| 62 | + print_r($result); |
| 63 | +} catch (Exception $e) { |
| 64 | + echo 'Exception when calling QueueApi->publishMessage: ', $e->getMessage(), PHP_EOL; |
| 65 | +} |
| 66 | + |
| 67 | +``` |
| 68 | + |
| 69 | +## API Endpoints |
| 70 | + |
| 71 | +All URIs are relative to *http://localhost:59999* |
| 72 | + |
| 73 | +Class | Method | HTTP request | Description |
| 74 | +------------ | ------------- | ------------- | ------------- |
| 75 | +*QueueApi* | [**publishMessage**](docs/Api/QueueApi.md#publishmessage) | **POST** /queue | |
| 76 | +*QueueApi* | [**validateSecret**](docs/Api/QueueApi.md#validatesecret) | **POST** /queue/validate-secret | |
| 77 | +*SecretApi* | [**getSecret**](docs/Api/SecretApi.md#getsecret) | **GET** /secrets/{name} | |
| 78 | +*SecureStorageApi* | [**deleteSecureStorage**](docs/Api/SecureStorageApi.md#deletesecurestorage) | **DELETE** /secure-storage/{key} | |
| 79 | +*SecureStorageApi* | [**getSecureStorage**](docs/Api/SecureStorageApi.md#getsecurestorage) | **GET** /secure-storage/{key} | |
| 80 | +*SecureStorageApi* | [**putSecureStorage**](docs/Api/SecureStorageApi.md#putsecurestorage) | **PUT** /secure-storage/{key} | |
| 81 | +*StorageApi* | [**deleteStorage**](docs/Api/StorageApi.md#deletestorage) | **DELETE** /storage/{key} | |
| 82 | +*StorageApi* | [**getStorage**](docs/Api/StorageApi.md#getstorage) | **GET** /storage/{key} | |
| 83 | +*StorageApi* | [**putStorage**](docs/Api/StorageApi.md#putstorage) | **PUT** /storage/{key} | |
| 84 | +*StorageApi* | [**storageIncrementCounter**](docs/Api/StorageApi.md#storageincrementcounter) | **PUT** /storage/{key}/counter/increment | |
| 85 | + |
| 86 | +## Models |
| 87 | + |
| 88 | +- [GetStorage404Response](docs/Model/GetStorage404Response.md) |
| 89 | +- [IncrementCounterParams](docs/Model/IncrementCounterParams.md) |
| 90 | +- [Period](docs/Model/Period.md) |
| 91 | +- [PublishMessageParams](docs/Model/PublishMessageParams.md) |
| 92 | +- [PublishMessageResponse](docs/Model/PublishMessageResponse.md) |
| 93 | +- [StorageDataContract](docs/Model/StorageDataContract.md) |
| 94 | +- [ValidateSecretParams](docs/Model/ValidateSecretParams.md) |
| 95 | +- [ValidateSecretResponse](docs/Model/ValidateSecretResponse.md) |
| 96 | + |
| 97 | +## Authorization |
| 98 | +Endpoints do not require authorization. |
| 99 | + |
| 100 | +## Tests |
| 101 | + |
| 102 | +To run the tests, use: |
| 103 | + |
| 104 | +```bash |
| 105 | +composer install |
| 106 | +vendor/bin/phpunit |
| 107 | +``` |
| 108 | + |
| 109 | +## Author |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | +## About this package |
| 114 | + |
| 115 | +This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: |
| 116 | + |
| 117 | +- API version: `0.0.1` |
| 118 | +- Build package: `org.openapitools.codegen.languages.PhpClientCodegen` |
0 commit comments