Update PHP Symfony server petstore with OAS2, OAS3 (#255)

* update php symfony with oas2 petstore

* update php symfony with oas3 petstore
This commit is contained in:
William Cheng
2018-04-28 14:38:37 +08:00
committed by GitHub
parent 5114cd96b0
commit 69133d3677
14 changed files with 174 additions and 154 deletions

View File

@@ -66,14 +66,14 @@ interface PetApiInterface
*
* Add a new pet to the store
*
* @param Swagger\Server\Model\Pet $body Pet object that needs to be added to the store (required)
* @param Swagger\Server\Model\Pet $pet Pet object that needs to be added to the store (required)
* @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);
public function addPet(Pet $pet, &$responseCode, array &$responseHeaders);
/**
* Operation deletePet
@@ -137,14 +137,14 @@ interface PetApiInterface
*
* Update an existing pet
*
* @param Swagger\Server\Model\Pet $body Pet object that needs to be added to the store (required)
* @param Swagger\Server\Model\Pet $pet Pet object that needs to be added to the store (required)
* @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);
public function updatePet(Pet $pet, &$responseCode, array &$responseHeaders);
/**
* Operation updatePetWithForm

View File

@@ -97,12 +97,12 @@ interface StoreApiInterface
*
* Place an order for a pet
*
* @param Swagger\Server\Model\Order $body order placed for purchasing the pet (required)
* @param Swagger\Server\Model\Order $order order placed for purchasing the pet (required)
* @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[]
*
*/
public function placeOrder(Order $body, &$responseCode, array &$responseHeaders);
public function placeOrder(Order $order, &$responseCode, array &$responseHeaders);
}

View File

@@ -47,42 +47,42 @@ interface UserApiInterface
*
* Create user
*
* @param Swagger\Server\Model\User $body Created user object (required)
* @param Swagger\Server\Model\User $user Created user object (required)
* @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);
public function createUser(User $user, &$responseCode, array &$responseHeaders);
/**
* Operation createUsersWithArrayInput
*
* Creates list of users with given input array
*
* @param Swagger\Server\Model\User[] $body List of user object (required)
* @param Swagger\Server\Model\User[] $user List of user object (required)
* @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);
public function createUsersWithArrayInput(array $user, &$responseCode, array &$responseHeaders);
/**
* Operation createUsersWithListInput
*
* Creates list of users with given input array
*
* @param Swagger\Server\Model\User[] $body List of user object (required)
* @param Swagger\Server\Model\User[] $user List of user object (required)
* @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);
public function createUsersWithListInput(array $user, &$responseCode, array &$responseHeaders);
/**
* Operation deleteUser
@@ -146,12 +146,12 @@ interface UserApiInterface
* Updated user
*
* @param string $username name that need to be deleted (required)
* @param Swagger\Server\Model\User $body Updated user object (required)
* @param Swagger\Server\Model\User $user Updated user object (required)
* @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);
public function updateUser($username, User $user, &$responseCode, array &$responseHeaders);
}