You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
656 B
34 lines
656 B
<?php
|
|
|
|
namespace UsingTraits;
|
|
|
|
/**
|
|
* @OA\Schema(title="Delete entity trait")
|
|
*
|
|
* @todo Not sure if this is correct or wanted behaviour...
|
|
*/
|
|
trait DeleteEntity {
|
|
|
|
/**
|
|
* @OA\Delete(
|
|
* tags={"Entities"},
|
|
* path="/entities/{id}",
|
|
* @OA\Parameter(
|
|
* description="ID of entity to delete",
|
|
* in="path",
|
|
* name="id",
|
|
* required=true,
|
|
* @OA\Schema(
|
|
* type="string"
|
|
* )
|
|
* ),
|
|
* @OA\Response(
|
|
* response="default",
|
|
* description="successful operation"
|
|
* )
|
|
* )
|
|
*/
|
|
public function deleteEntity($id)
|
|
{
|
|
}
|
|
}
|
|
|