Completed PriceNowProvider

This commit is contained in:
2022-01-13 22:28:14 +00:00
parent 03ed3a878b
commit ff74df4911
9 changed files with 357 additions and 100 deletions

View File

@ -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;
}