Jump to content

Draft:API Platform

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Plastikspork (talk | contribs) at 14:58, 7 December 2024 (Pending). 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 progress are ofen presented in tech conferences[4][5] and meet-ups[6].

Example

use ApiPlatform\Metadata\ApiResource;

...

#[ApiResource(
    operations: [
        new Get(),
        new GetCollection()
    ]
)]
class Book
{
    ...
}

See also


References


{{PHP PHP}}