forked from loafle/openapi-generator-original
[PHP][Symfony] Further enhancements (#7001)
* Further enchancements for PHP-Symfony. Fixes issues described in #6999 * Ran shell script to update petstore sample
This commit is contained in:
committed by
William Cheng
parent
a565a94a06
commit
5d59dd10ec
@@ -70,6 +70,8 @@ interface PetApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public function addPet(Pet $body, &$responseCode, array &$responseHeaders);
|
||||
|
||||
@@ -83,6 +85,8 @@ interface PetApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public function deletePet($petId, $apiKey = null, &$responseCode, array &$responseHeaders);
|
||||
|
||||
@@ -123,7 +127,7 @@ interface PetApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return Swagger\Server\Model\Pet
|
||||
* @return Swagger\Server\Model\Pet[]
|
||||
*
|
||||
*/
|
||||
public function getPetById($petId, &$responseCode, array &$responseHeaders);
|
||||
@@ -137,6 +141,8 @@ interface PetApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public function updatePet(Pet $body, &$responseCode, array &$responseHeaders);
|
||||
|
||||
@@ -151,6 +157,8 @@ interface PetApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public function updatePetWithForm($petId, $name = null, $status = null, &$responseCode, array &$responseHeaders);
|
||||
|
||||
@@ -165,7 +173,7 @@ interface PetApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return Swagger\Server\Model\ApiResponse
|
||||
* @return Swagger\Server\Model\ApiResponse[]
|
||||
*
|
||||
*/
|
||||
public function uploadFile($petId, $additionalMetadata = null, UploadedFile $file = null, &$responseCode, array &$responseHeaders);
|
||||
|
||||
@@ -60,6 +60,8 @@ interface StoreApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public function deleteOrder($orderId, &$responseCode, array &$responseHeaders);
|
||||
|
||||
@@ -71,7 +73,7 @@ interface StoreApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return int[]
|
||||
* @return int
|
||||
*
|
||||
*/
|
||||
public function getInventory(&$responseCode, array &$responseHeaders);
|
||||
@@ -85,7 +87,7 @@ interface StoreApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return Swagger\Server\Model\Order
|
||||
* @return Swagger\Server\Model\Order[]
|
||||
*
|
||||
*/
|
||||
public function getOrderById($orderId, &$responseCode, array &$responseHeaders);
|
||||
@@ -99,7 +101,7 @@ interface StoreApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return Swagger\Server\Model\Order
|
||||
* @return Swagger\Server\Model\Order[]
|
||||
*
|
||||
*/
|
||||
public function placeOrder(Order $body, &$responseCode, array &$responseHeaders);
|
||||
|
||||
@@ -51,6 +51,8 @@ interface UserApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public function createUser(User $body, &$responseCode, array &$responseHeaders);
|
||||
|
||||
@@ -63,6 +65,8 @@ interface UserApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public function createUsersWithArrayInput(array $body, &$responseCode, array &$responseHeaders);
|
||||
|
||||
@@ -75,6 +79,8 @@ interface UserApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public function createUsersWithListInput(array $body, &$responseCode, array &$responseHeaders);
|
||||
|
||||
@@ -87,6 +93,8 @@ interface UserApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public function deleteUser($username, &$responseCode, array &$responseHeaders);
|
||||
|
||||
@@ -99,7 +107,7 @@ interface UserApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return Swagger\Server\Model\User
|
||||
* @return Swagger\Server\Model\User[]
|
||||
*
|
||||
*/
|
||||
public function getUserByName($username, &$responseCode, array &$responseHeaders);
|
||||
@@ -127,6 +135,8 @@ interface UserApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public function logoutUser(&$responseCode, array &$responseHeaders);
|
||||
|
||||
@@ -140,6 +150,8 @@ interface UserApiInterface
|
||||
* @param integer $responseCode The HTTP response code to return
|
||||
* @param array $responseHeaders Additional HTTP headers to return with the response ()
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public function updateUser($username, User $body, &$responseCode, array &$responseHeaders);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user