Skip to content

Commit 63520a1

Browse files
committed
Initial commit
0 parents  commit 63520a1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+14835
-0
lines changed

.gitignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ref: https://github.com/github/gitignore/blob/master/Composer.gitignore
2+
3+
composer.phar
4+
/vendor/
5+
6+
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
7+
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
8+
# composer.lock
9+
10+
# php-cs-fixer cache
11+
.php_cs.cache
12+
.php-cs-fixer.cache
13+
14+
# PHPUnit cache
15+
.phpunit.result.cache

.openapi-generator-ignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.openapi-generator/FILES

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.gitignore
2+
.php-cs-fixer.dist.php
3+
.travis.yml
4+
README.md
5+
composer.json
6+
docs/Api/QueueApi.md
7+
docs/Api/SecretApi.md
8+
docs/Api/SecureStorageApi.md
9+
docs/Api/StorageApi.md
10+
docs/Model/GetStorage404Response.md
11+
docs/Model/IncrementCounterParams.md
12+
docs/Model/Period.md
13+
docs/Model/PublishMessageParams.md
14+
docs/Model/PublishMessageResponse.md
15+
docs/Model/StorageDataContract.md
16+
docs/Model/ValidateSecretParams.md
17+
docs/Model/ValidateSecretResponse.md
18+
git_push.sh
19+
lib/Api/QueueApi.php
20+
lib/Api/SecretApi.php
21+
lib/Api/SecureStorageApi.php
22+
lib/Api/StorageApi.php
23+
lib/ApiException.php
24+
lib/Configuration.php
25+
lib/HeaderSelector.php
26+
lib/Model/GetStorage404Response.php
27+
lib/Model/IncrementCounterParams.php
28+
lib/Model/ModelInterface.php
29+
lib/Model/Period.php
30+
lib/Model/PublishMessageParams.php
31+
lib/Model/PublishMessageResponse.php
32+
lib/Model/StorageDataContract.php
33+
lib/Model/ValidateSecretParams.php
34+
lib/Model/ValidateSecretResponse.php
35+
lib/ObjectSerializer.php
36+
phpunit.xml.dist

.openapi-generator/VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.4.0-SNAPSHOT

.php-cs-fixer.dist.php

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/**
4+
* @generated
5+
* @link https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/HEAD/doc/config.rst
6+
*/
7+
$finder = PhpCsFixer\Finder::create()
8+
->in(__DIR__)
9+
->exclude('vendor')
10+
->exclude('test')
11+
->exclude('tests')
12+
;
13+
14+
$config = new PhpCsFixer\Config();
15+
return $config->setRules([
16+
'@PSR12' => true,
17+
'phpdoc_order' => true,
18+
'array_syntax' => [ 'syntax' => 'short' ],
19+
'strict_comparison' => true,
20+
'strict_param' => true,
21+
'no_trailing_whitespace' => false,
22+
'no_trailing_whitespace_in_comment' => false,
23+
'braces' => false,
24+
'single_blank_line_at_eof' => false,
25+
'blank_line_after_namespace' => false,
26+
'no_leading_import_slash' => false,
27+
])
28+
->setFinder($finder)
29+
;

.travis.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: php
2+
# Bionic environment has preinstalled PHP from 7.1 to 7.4
3+
# https://docs.travis-ci.com/user/reference/bionic/#php-support
4+
dist: bionic
5+
php:
6+
- 7.4
7+
before_install: "composer install"
8+
script: "vendor/bin/phpunit"

README.md

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
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`

composer.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"description": "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)",
3+
"keywords": [
4+
"openapitools",
5+
"openapi-generator",
6+
"openapi",
7+
"php",
8+
"sdk",
9+
"rest",
10+
"api"
11+
],
12+
"homepage": "https://openapi-generator.tech",
13+
"license": "unlicense",
14+
"authors": [
15+
{
16+
"name": "OpenAPI",
17+
"homepage": "https://openapi-generator.tech"
18+
}
19+
],
20+
"require": {
21+
"php": "^7.4 || ^8.0",
22+
"ext-curl": "*",
23+
"ext-json": "*",
24+
"ext-mbstring": "*",
25+
"guzzlehttp/guzzle": "^7.3",
26+
"guzzlehttp/psr7": "^1.7 || ^2.0"
27+
},
28+
"require-dev": {
29+
"phpunit/phpunit": "^8.0 || ^9.0",
30+
"friendsofphp/php-cs-fixer": "^3.5"
31+
},
32+
"autoload": {
33+
"psr-4": { "OpenAPI\\Client\\" : "lib/" }
34+
},
35+
"autoload-dev": {
36+
"psr-4": { "OpenAPI\\Client\\Test\\" : "test/" }
37+
}
38+
}

0 commit comments

Comments
 (0)