When creating a definition in swagger-php, I want to add a set of standard 
properties to the definition via reference. How do i do this? Here is what 
i'm trying to accomplish.

* @SWG\Definition(

*         definition="StandardDates",

*         @SWG\Property( property="createdate", type="integer", 
description="(EPOCH Timestamp) Date and time the item was created" ),

*         @SWG\Property( property="modifieddate", type="integer", 
description="(EPOCH Timestamp) Date and time the item was modified" ),

*         @SWG\Property( property="deletedate", type="integer", 
description="(EPOCH Timestamp) Date and time the item was marked as deleted" )

* )

* @SWG\Definition(

*         definition="PetInfo",

*         @SWG\Property( property="petBreed", type="string"),

*         @SWG\Property( property="petName", type="string"),

*         ref="#/definitions/StandardDates"

* ),

*

* @SWG\Response

* (@SWG\Schema(ref="#/definitions/PetInfo"))


Expected Response

{

 "petBreed":"",

 "petName":"",

 "createdate":"",

 "modifieddate":"",

 "deletedate":""

}

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to