There is no license information available for the latest version (v1.0.2) of this package.

v1.0.2 2024-11-17 21:11 UTC

This package is not auto-updated.

Last update: 2025-01-12 22:07:23 UTC


README

Based on Apitte and Nette Framework.

API

Setup

Register Base API using ApiExtension to your Nette-based application.

# config.neon

extensions:
    api: Sabservis\Api\DI\ApiExtension

After that, create entrypoint to your Nette-based application. For example www/index.php looks like that.

// www/index.php

use App\Bootstrap;
use Sabservis\Api\Application\Application;

require __DIR__ . '/../vendor/autoload.php';

Bootstrap::boot()
    ->createContainer()
    ->getByType(Application::class)
    ->run();