Find file History
Latest commit 7e7efa4 Jul 4, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
app Added api-router project Jun 14, 2018
log Added api-router project Jun 14, 2018
temp Added api-router project Jun 14, 2018
www Added api-router project Jun 14, 2018
.gitignore Added api-router project Jun 14, 2018
.htaccess Added api-router project Jun 14, 2018
composer.json [api-router] Cleanup Jul 4, 2018
composer.lock [api-router] Cleanup Jul 4, 2018
readme.md [api-router] Cleanup Jul 4, 2018

readme.md

ApiRouter

This repository is meant as a starter project for contributte/api-router.

Installation

git pull git@github.com:contributte/playground.git
cd api-router
composer install

Usage

  • Using ublaboo/api-router for routing
  • Implementing IPresenter in endpoints (App\Controllers\LoginController) instead of extending UI\Presenter
  • Extending ApiResponse from Nette JsonResponse, just to make it more simple to add more custom headers and so on
  • LoginController and ErrorController is using ApiResponseFormatter for formatting succes message, payload data or and exception