Completed PriceNowProvider
This commit is contained in:
@ -8,6 +8,24 @@ use ApiPlatform\Core\Annotation\ApiProperty;
|
||||
use ApiPlatform\Core\Annotation\ApiResource;
|
||||
use ApiPlatform\Core\Action\NotFoundAction;
|
||||
|
||||
/*
|
||||
* itemOperations={
|
||||
* "get"={
|
||||
* "method"="GET",
|
||||
* "controller"=NotFoundAction::class,
|
||||
* "read"=false,
|
||||
* "output"=false,
|
||||
* "path"="/priceNow/{id}",
|
||||
* },
|
||||
* },
|
||||
* itemOperations={},
|
||||
* collectionOperations={"get"={
|
||||
* "path"="/priceNow",
|
||||
* }
|
||||
* }
|
||||
* )
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ApiResource(
|
||||
* itemOperations={
|
||||
@ -16,9 +34,13 @@ use ApiPlatform\Core\Action\NotFoundAction;
|
||||
* "controller"=NotFoundAction::class,
|
||||
* "read"=false,
|
||||
* "output"=false,
|
||||
* "path"="/priceNow/{id}",
|
||||
* },
|
||||
* },
|
||||
* collectionOperations={"get"}
|
||||
* collectionOperations={"get"={
|
||||
* "path"="/priceNow",
|
||||
* }
|
||||
* }
|
||||
* )
|
||||
*
|
||||
*/
|
||||
@ -29,8 +51,8 @@ class PriceNow
|
||||
*/
|
||||
public ?int $id = null;
|
||||
|
||||
public ?int $min = null;
|
||||
public ?int $max = null;
|
||||
public ?int $avg = null;
|
||||
public ?int $now = null;
|
||||
public ?float $min = null;
|
||||
public ?float $max = null;
|
||||
public ?float $avg = null;
|
||||
public ?float $now = null;
|
||||
}
|
Reference in New Issue
Block a user