Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.

githubERIK/openapi-php-multiparam-bug-example

Repository files navigation

OpenAPIClient-php

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 0.0.1
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new OpenAPI\Client\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$label_ids = array('label_ids_example'); // string[] | 

try {
    $apiInstance->fetchNotes($label_ids);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->fetchNotes: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://some.example.api.com/v1

Class Method HTTP request Description
DefaultApi fetchNotes GET /notes Returns all notes.

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

About

Query parameters in example.yaml used incorrectly

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors