Fix matching prefix for api routes
More testing and fixing docblocks.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Refactoring.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Moving docs to wiki and adding license details. [ci skip]

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Implemented configurable response formats. See #3.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Return an encoded empty array when formatting empty Eloquent collection. Fixes #4.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Make authentication more configurable and extendable.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Fix test, don't worry about checking the exceptions message.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Fix for loose matching in Laravel's routing that causes HTTPS issues.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Fixing up test stubs and autoloading.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Fixed bug where API would kick in when a regular group had a prefix of "api". Fixes #7.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Implemented default prefix and domain that can be set in configuration.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Lots of refactoring and cleaning up.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Passing InvalidTokenException in so a custom handler can grab the error.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Tweak the exception handler so status codes are only set on new responses.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Cleaning up tests.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Fixing bug with registering multiple versions in a single group.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Refactoring authentication layer.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Internal user authentication is persisted and added optional "once" method to only authenticate for single request.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Implemented API::route and API::action for name-based and action-based requests. Closes #12.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>