Slide 52
Slide 52 text
@matarld
@chalas_r
Wrap it up
#[ApiResource(
operations: [
new GetCollection(
'/books/cheapest',
provider: CheapestBooksProvider::class,
),
new Post(
'/books/{id}/discount',
input: DiscountBookPayload::class,
provider: BookItemProvider::class,
processor: DiscountBookProcessor::class,
),
],
)]
final class BookResource
Business hexagonal
Hexagonal business
#[ApiResource(
operations: [new Get(), new Post()],
)]
final class Subscription
RAD CRUD