TypeAPI

An OpenAPI alternative to describe REST APIs for type-safe code generation.

Specification Editor Generator

PHP Server Integration

The server code is based on Symfony. The generated code contains the controller and model classes which are described at the specification. You only need to copy and paste the generated code into your source folder. A simple controller would look like:

class App extends AbstractController
{
    #[Route('/hello/world', methods: ['GET'])]
    #[StatusCode(200)]
    public function getMessage(): Model\HelloWorld
    {
        // @TODO implement method
    }

}
part of the Apioo-Project