Installation

composer require api

Configuration

Add @ApiResource() annotation to an entity that is a resource of the API

Usage

http://localhost:8000/api

When opened in the browser, shows swagger like documentation.

More information

Restrict Operations

Serialization Groups

ApiSubresource

Displaying subresources