forked from loafle/openapi-generator-original
		
	* add numeric operationid to test spec * better handling of operationId in more generators * fix go toOperationId * update samples * update java samples * update java samples (vertx, webclient) * update java google api client sample * fix typo, update OAS3 test spec, update php petstore (oas3) * defer camelize in operationid * remove duplicated sanitizeName
		
			
				
	
	
		
			59 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * AnotherFakeApi
 | |
|  *
 | |
|  * PHP version 5
 | |
|  *
 | |
|  * @category Class
 | |
|  * @package  OpenAPIServer\Api
 | |
|  * @author   OpenAPI Generator team
 | |
|  * @link     https://github.com/openapitools/openapi-generator
 | |
|  */
 | |
| 
 | |
| /**
 | |
|  * OpenAPI Petstore
 | |
|  *
 | |
|  * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
 | |
|  * OpenAPI spec version: 1.0.0
 | |
|  * Generated by: https://github.com/openapitools/openapi-generator.git
 | |
|  */
 | |
| 
 | |
| /**
 | |
|  * NOTE: This class is auto generated by the openapi generator program.
 | |
|  * https://github.com/openapitools/openapi-generator
 | |
|  * Do not edit the class manually.
 | |
|  */
 | |
| namespace OpenAPIServer\Api;
 | |
| 
 | |
| use OpenAPIServer\AbstractApiController;
 | |
| 
 | |
| /**
 | |
|  * AnotherFakeApi Class Doc Comment
 | |
|  *
 | |
|  * PHP version 5
 | |
|  *
 | |
|  * @category Class
 | |
|  * @package  OpenAPIServer\Api
 | |
|  * @author   OpenAPI Generator team
 | |
|  * @link     https://github.com/openapitools/openapi-generator
 | |
|  */
 | |
| class AnotherFakeApi extends AbstractApiController {
 | |
| 
 | |
|     /**
 | |
|      * PATCH 123testSpecialTags
 | |
|      * Summary: To test special tags
 | |
|      * Notes: To test special tags and operation ID starting with number
 | |
|      * Output-Formats: [application/json]
 | |
|      *
 | |
|      * @param \Psr\Http\Message\ServerRequestInterface $request  Request
 | |
|      * @param \Psr\Http\Message\ResponseInterface      $response Response
 | |
|      * @param array|null                               $args     Path arguments
 | |
|      */
 | |
|     public function 123testSpecialTags($request, $response, $args) {
 | |
|         $body = $request->getParsedBody();
 | |
|         $response->write('How about implementing 123testSpecialTags as a PATCH method ?');
 | |
|         return $response;
 | |
|     }
 | |
|     
 | |
| }
 |