update php ze-ph samples

This commit is contained in:
William Cheng 2019-01-31 10:38:06 +08:00
parent 562442764a
commit f946492e7e
27 changed files with 40 additions and 40 deletions

View File

@ -17,7 +17,7 @@ class AnotherFakeDummy
{
/**
* To test special tags
* @PHA\handlePatch
* @PHA\Patch()
* TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json")
* @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\Client::class,"objectAttr":"bodyData"})

View File

@ -17,7 +17,7 @@ class Fake
{
/**
* To test \"client\" model
* @PHA\handlePatch
* @PHA\Patch()
* TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json")
* @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\Client::class,"objectAttr":"bodyData"})
@ -38,7 +38,7 @@ class Fake
}
/**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* @PHA\handlePost
* @PHA\Post()
* @param ServerRequestInterface $request
*
* @throws PHException\HttpCode 501 if the method is not implemented
@ -50,7 +50,7 @@ class Fake
}
/**
* To test enum parameters
* @PHA\handleGet
* @PHA\Get()
* @param ServerRequestInterface $request
*
* @throws PHException\HttpCode 501 if the method is not implemented
@ -62,7 +62,7 @@ class Fake
}
/**
* Fake endpoint to test group parameters (optional)
* @PHA\handleDelete
* @PHA\Delete()
* @param ServerRequestInterface $request
*
* @throws PHException\HttpCode 501 if the method is not implemented

View File

@ -16,7 +16,7 @@ use Psr\Http\Message\ServerRequestInterface;
class FakeBodyWithFileSchema
{
/**
* @PHA\handlePut
* @PHA\Put()
* TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json")
* @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\FileSchemaTestClass::class,"objectAttr":"bodyData"})

View File

@ -16,7 +16,7 @@ use Psr\Http\Message\ServerRequestInterface;
class FakeBodyWithQueryParams
{
/**
* @PHA\handlePut
* @PHA\Put()
* TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json")
* @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\User::class,"objectAttr":"bodyData"})

View File

@ -17,7 +17,7 @@ class FakeClassnameTest
{
/**
* To test class name in snake case
* @PHA\handlePatch
* @PHA\Patch()
* TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json")
* @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\Client::class,"objectAttr":"bodyData"})

View File

@ -17,7 +17,7 @@ class FakeCreateXmlItem
{
/**
* creates an XmlItem
* @PHA\handlePost
* @PHA\Post()
* TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/xml")
* TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation

View File

@ -17,7 +17,7 @@ class FakeInlineAdditionalProperties
{
/**
* test inline additionalProperties
* @PHA\handlePost
* @PHA\Post()
* TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json")
* TODO check if attribute is valid and can handle your container type

View File

@ -17,7 +17,7 @@ class FakeJsonFormData
{
/**
* test json serialization of form data
* @PHA\handleGet
* @PHA\Get()
* @param ServerRequestInterface $request
*
* @throws PHException\HttpCode 501 if the method is not implemented

View File

@ -16,9 +16,9 @@ use Psr\Http\Message\ServerRequestInterface;
class FakeOuterBoolean
{
/**
* @PHA\handlePost
* @PHA\Post()
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="*/*")
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="n/a")
* @param ServerRequestInterface $request
*
* @throws PHException\HttpCode 501 if the method is not implemented

View File

@ -16,10 +16,10 @@ use Psr\Http\Message\ServerRequestInterface;
class FakeOuterComposite
{
/**
* @PHA\handlePost
* @PHA\Post()
* @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\OuterComposite::class,"objectAttr":"bodyData"})
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="*/*")
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="n/a")
* @param ServerRequestInterface $request
*
* @throws PHException\HttpCode 501 if the method is not implemented

View File

@ -16,9 +16,9 @@ use Psr\Http\Message\ServerRequestInterface;
class FakeOuterNumber
{
/**
* @PHA\handlePost
* @PHA\Post()
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="*/*")
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="n/a")
* @param ServerRequestInterface $request
*
* @throws PHException\HttpCode 501 if the method is not implemented

View File

@ -16,9 +16,9 @@ use Psr\Http\Message\ServerRequestInterface;
class FakeOuterString
{
/**
* @PHA\handlePost
* @PHA\Post()
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="*/*")
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="n/a")
* @param ServerRequestInterface $request
*
* @throws PHException\HttpCode 501 if the method is not implemented

View File

@ -17,7 +17,7 @@ class FakePetIdUploadImageWithRequiredFile
{
/**
* uploads an image (required)
* @PHA\handlePost
* @PHA\Post()
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/json")
* @param ServerRequestInterface $request

View File

@ -17,7 +17,7 @@ class Pet
{
/**
* Add a new pet to the store
* @PHA\handlePost
* @PHA\Post()
* TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json")
* TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation
@ -36,7 +36,7 @@ class Pet
}
/**
* Update an existing pet
* @PHA\handlePut
* @PHA\Put()
* TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Consumer(name=PHConsumer\Json::class, mediaType="application/json")
* TODO check if consumer is valid, if it has correct priority and if it can be moved to class annotation

View File

@ -17,7 +17,7 @@ class PetFindByStatus
{
/**
* Finds Pets by status
* @PHA\handleGet
* @PHA\Get()
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/xml")
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation

View File

@ -17,7 +17,7 @@ class PetFindByTags
{
/**
* Finds Pets by tags
* @PHA\handleGet
* @PHA\Get()
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/xml")
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation

View File

@ -17,7 +17,7 @@ class PetPetId
{
/**
* Deletes a pet
* @PHA\handleDelete
* @PHA\Delete()
* @param ServerRequestInterface $request
*
* @throws PHException\HttpCode 501 if the method is not implemented
@ -29,7 +29,7 @@ class PetPetId
}
/**
* Find pet by ID
* @PHA\handleGet
* @PHA\Get()
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/xml")
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
@ -47,7 +47,7 @@ class PetPetId
}
/**
* Updates a pet in the store with form data
* @PHA\handlePost
* @PHA\Post()
* @param ServerRequestInterface $request
*
* @throws PHException\HttpCode 501 if the method is not implemented

View File

@ -17,7 +17,7 @@ class PetPetIdUploadImage
{
/**
* uploads an image
* @PHA\handlePost
* @PHA\Post()
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/json")
* @param ServerRequestInterface $request

View File

@ -17,7 +17,7 @@ class StoreInventory
{
/**
* Returns pet inventories by status
* @PHA\handleGet
* @PHA\Get()
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/json")
* @param ServerRequestInterface $request

View File

@ -17,7 +17,7 @@ class StoreOrder
{
/**
* Place an order for a pet
* @PHA\handlePost
* @PHA\Post()
* @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\Order::class,"objectAttr":"bodyData"})
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/xml")

View File

@ -17,7 +17,7 @@ class StoreOrderOrderId
{
/**
* Delete purchase order by ID
* @PHA\handleDelete
* @PHA\Delete()
* @param ServerRequestInterface $request
*
* @throws PHException\HttpCode 501 if the method is not implemented
@ -29,7 +29,7 @@ class StoreOrderOrderId
}
/**
* Find purchase order by ID
* @PHA\handleGet
* @PHA\Get()
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/xml")
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation

View File

@ -17,7 +17,7 @@ class User
{
/**
* Create user
* @PHA\handlePost
* @PHA\Post()
* @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\User::class,"objectAttr":"bodyData"})
* @param ServerRequestInterface $request
*

View File

@ -17,7 +17,7 @@ class UserCreateWithArray
{
/**
* Creates list of users with given input array
* @PHA\handlePost
* @PHA\Post()
* TODO check if attribute is valid and can handle your container type
* @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":"\App\DTO\User[]","objectAttr":"bodyData"})
* @param ServerRequestInterface $request

View File

@ -17,7 +17,7 @@ class UserCreateWithList
{
/**
* Creates list of users with given input array
* @PHA\handlePost
* @PHA\Post()
* TODO check if attribute is valid and can handle your container type
* @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":"\App\DTO\User[]","objectAttr":"bodyData"})
* @param ServerRequestInterface $request

View File

@ -17,7 +17,7 @@ class UserLogin
{
/**
* Logs user into the system
* @PHA\handleGet
* @PHA\Get()
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/xml")
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation

View File

@ -17,7 +17,7 @@ class UserLogout
{
/**
* Logs out current logged in user session
* @PHA\handleGet
* @PHA\Get()
* @param ServerRequestInterface $request
*
* @throws PHException\HttpCode 501 if the method is not implemented

View File

@ -17,7 +17,7 @@ class UserUsername
{
/**
* Delete user
* @PHA\handleDelete
* @PHA\Delete()
* @param ServerRequestInterface $request
*
* @throws PHException\HttpCode 501 if the method is not implemented
@ -29,7 +29,7 @@ class UserUsername
}
/**
* Get user by user name
* @PHA\handleGet
* @PHA\Get()
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
* @PHA\Producer(name=PHProducer\Transfer::class, mediaType="application/xml")
* TODO check if producer is valid, if it has correct priority and if it can be moved to class annotation
@ -47,7 +47,7 @@ class UserUsername
}
/**
* Updated user
* @PHA\handlePut
* @PHA\Put()
* @PHA\Attribute(name=PHAttribute\Transfer::class, options={"type":\App\DTO\User::class,"objectAttr":"bodyData"})
* @param ServerRequestInterface $request
*