Jump to content

Draft:API Platform

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Praxidicae (talk | contribs) at 20:07, 15 December 2024 (Praxidicae moved page API Platform to Draft:API Platform over a redirect without leaving a redirect: Not ready for mainspace, incubate in draftspace (via script)). 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][7] and meet-ups[8].

Example

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

See also


References