From 43effce37c34a3434a1be8c31f5c3788ed76232b Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Wed, 28 Jun 2017 14:01:27 -0500 Subject: [PATCH] #35 some deps for restful interface --- composer.json | 4 +- composer.lock | 224 ++++++++++++++++++++++++++- phpvms.iml | 6 + resources/views/admin/menu.blade.php | 2 +- 4 files changed, 233 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 02c516bf..9b82dc07 100755 --- a/composer.json +++ b/composer.json @@ -22,7 +22,9 @@ "league/geotools": "@stable", "toin0u/geotools-laravel": "^1.0", "anlutro/l4-settings": "^0.5.0", - "webpatser/laravel-uuid": "^2.0" + "webpatser/laravel-uuid": "^2.0", + "chrisbjr/api-guard": "^4.0", + "spatie/laravel-fractal": "^4.01" }, "require-dev": { "fzaninotto/faker": "~1.4", diff --git a/composer.lock b/composer.lock index 4e9e5587..605a83f0 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "7525e3933b2ad8a1f88d01bb12263d86", + "content-hash": "43f3e5ba26994dd305c74c84a42177dd", "packages": [ { "name": "anlutro/l4-settings", @@ -167,6 +167,58 @@ ], "time": "2016-06-13T19:28:20+00:00" }, + { + "name": "chrisbjr/api-guard", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/chrisbjr/api-guard.git", + "reference": "83b10c7f781af413e0d76e6771ce90024a24efb4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/chrisbjr/api-guard/zipball/83b10c7f781af413e0d76e6771ce90024a24efb4", + "reference": "83b10c7f781af413e0d76e6771ce90024a24efb4", + "shasum": "" + }, + "require": { + "ellipsesynergie/api-response": "*", + "illuminate/database": "^5.3.0", + "illuminate/support": "^5.3.0", + "php": ">=5.6.4" + }, + "require-dev": { + "phpunit/phpunit": "^4.0 || ^5.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Chrisbjr\\ApiGuard\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "authors": [ + { + "name": "Chris Bautista", + "email": "chrisbjr@gmail.com" + }, + { + "name": "Mark Jayson Fuentes", + "email": "awkwardusername@gmail.com" + } + ], + "description": "A simple way of authenticating your APIs with API keys using Laravel", + "homepage": "https://github.com/chrisbjr/api-guard", + "keywords": [ + "api", + "api authentication", + "api keys", + "json", + "laravel", + "rest" + ], + "time": "2017-05-27T16:22:13+00:00" + }, { "name": "doctrine/annotations", "version": "v1.4.0", @@ -777,6 +829,67 @@ "abandoned": "php-http/httplug", "time": "2015-08-12T09:35:40+00:00" }, + { + "name": "ellipsesynergie/api-response", + "version": "0.13.0", + "source": { + "type": "git", + "url": "https://github.com/ellipsesynergie/api-response.git", + "reference": "8dc21b2a81c6c25495b7abb3b5df56d37307275c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ellipsesynergie/api-response/zipball/8dc21b2a81c6c25495b7abb3b5df56d37307275c", + "reference": "8dc21b2a81c6c25495b7abb3b5df56d37307275c", + "shasum": "" + }, + "require": { + "league/fractal": "~0.13", + "php": ">=5.4.0" + }, + "require-dev": { + "illuminate/contracts": "~5.0", + "illuminate/http": "~5.0", + "mockery/mockery": "~0.9", + "phpunit/phpunit": "~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.13-dev" + } + }, + "autoload": { + "psr-4": { + "EllipseSynergie\\ApiResponse\\": "src", + "EllipseSynergie\\ApiResponse\\Tests\\": "tests" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Maxime Beaudoin", + "email": "maxime.beaudoin@ellipse-synergie.com", + "role": "Developer" + }, + { + "name": "Phil Sturgeon", + "email": "email@philsturgeon.co.uk", + "role": "Developer" + } + ], + "description": "Simple package to handle response properly in your API", + "homepage": "https://github.com/ellipsesynergie/api-response", + "keywords": [ + "api", + "fractal", + "json" + ], + "time": "2017-05-10T20:51:03+00:00" + }, { "name": "erusev/parsedown", "version": "1.6.2", @@ -2395,6 +2508,115 @@ ], "time": "2017-03-25T12:08:31+00:00" }, + { + "name": "spatie/fractalistic", + "version": "2.2.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/fractalistic.git", + "reference": "8f00c666a8b8dfb06f79286f97255e6ab1c89639" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/fractalistic/zipball/8f00c666a8b8dfb06f79286f97255e6ab1c89639", + "reference": "8f00c666a8b8dfb06f79286f97255e6ab1c89639", + "shasum": "" + }, + "require": { + "league/fractal": "^0.16.0", + "php": "^5.6|^7.0" + }, + "require-dev": { + "illuminate/pagination": "~5.3.0|~5.4.0", + "phpunit/phpunit": "^5.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Fractalistic\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A developer friendly wrapper around Fractal", + "homepage": "https://github.com/spatie/fractalistic", + "keywords": [ + "api", + "fractal", + "fractalistic", + "spatie", + "transform" + ], + "time": "2017-05-29T14:16:20+00:00" + }, + { + "name": "spatie/laravel-fractal", + "version": "4.01", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-fractal.git", + "reference": "3b95780f5f3ca79e29d445a5df87eac9f7c7c053" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-fractal/zipball/3b95780f5f3ca79e29d445a5df87eac9f7c7c053", + "reference": "3b95780f5f3ca79e29d445a5df87eac9f7c7c053", + "shasum": "" + }, + "require": { + "illuminate/contracts": "~5.1.0|~5.2.0|~5.3.0|~5.4.0", + "illuminate/support": "~5.1.0|~5.2.0|~5.3.0|~5.4.0", + "php": "^5.6|^7.0", + "spatie/fractalistic": "^2.0" + }, + "require-dev": { + "orchestra/testbench": "~3.2.0|3.3.0|~3.4.0", + "phpunit/phpunit": "^5.7.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Fractal\\": "src" + }, + "files": [ + "src/helpers.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "An easy to use Fractal integration for Laravel applications", + "homepage": "https://github.com/spatie/laravel-fractal", + "keywords": [ + "api", + "fractal", + "laravel", + "laravel-fractal", + "lumen", + "spatie", + "transform" + ], + "time": "2017-05-05T19:01:43+00:00" + }, { "name": "spatie/laravel-pjax", "version": "1.3.1", diff --git a/phpvms.iml b/phpvms.iml index c752e417..7a4cfac5 100644 --- a/phpvms.iml +++ b/phpvms.iml @@ -3,7 +3,9 @@ + + @@ -32,7 +34,9 @@ + + @@ -48,7 +52,9 @@ + + diff --git a/resources/views/admin/menu.blade.php b/resources/views/admin/menu.blade.php index 04242827..e32e9565 100644 --- a/resources/views/admin/menu.blade.php +++ b/resources/views/admin/menu.blade.php @@ -16,4 +16,4 @@
  •  airports
  • {{--
  •  aircraft classes
  • --}}
  •  users
  • -
  •  ranks
  • +
  •  ranks