Jump to content

Draft:API Platform

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Bearcat (talk | contribs) at 13:56, 11 December 2024 (WP:DRAFTNOCAT). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

API Platform is a web framework which can be used with the framworks Symfony[1] and Laravel[2]. It allows the creation of APIs in a fast and configurable manner. API Platform also automatically generates OpenAPI documentation for APIs built with it[3]. It was first released in 2018.

Its new features are often presented in tech conferences[4][5], one of which is organised by the company behind it[6] and meet-ups[7].

Example

use ApiPlatform\Metadata\ApiResource;
...
#[ApiResource(
    operations: [
        new Get(),
        new GetCollection()
    ]
)]
class Book
{
    ...
}

See also


References