├── .gitignore ├── .travis.yml ├── LICENSE.txt ├── README.md ├── composer.json ├── phpunit.xml ├── public └── .gitkeep ├── src ├── Jarischaefer │ └── HalApi │ │ ├── Caching │ │ ├── CacheFactory.php │ │ ├── CacheFactoryImpl.php │ │ ├── HalApiCache.php │ │ └── HalApiCacheImpl.php │ │ ├── Controllers │ │ ├── HalApiController.php │ │ ├── HalApiControllerContract.php │ │ ├── HalApiControllerParameters.php │ │ ├── HalApiRequestParameters.php │ │ ├── HalApiResourceController.php │ │ └── HalApiResourceControllerContract.php │ │ ├── Exceptions │ │ ├── BadPostRequestException.php │ │ ├── BadPutRequestException.php │ │ ├── DatabaseConflictException.php │ │ ├── DatabaseSaveException.php │ │ ├── FieldNotSearchableException.php │ │ └── NotImplementedException.php │ │ ├── Helpers │ │ ├── CacheHelper.php │ │ ├── Checks.php │ │ ├── ResourceRoute.php │ │ ├── RouteHelper.php │ │ ├── RouteHelperConstants.php │ │ └── SafeIndexArray.php │ │ ├── Middleware │ │ ├── HalApiCacheMiddleware.php │ │ └── HalApiETagMiddleware.php │ │ ├── Providers │ │ └── HalApiServiceProvider.php │ │ ├── Repositories │ │ ├── HalApiEloquentRepository.php │ │ ├── HalApiEloquentSearchRepository.php │ │ ├── HalApiRepository.php │ │ └── HalApiSearchRepository.php │ │ ├── Representations │ │ ├── HalApiPaginatedRepresentation.php │ │ ├── HalApiPaginatedRepresentationImpl.php │ │ ├── HalApiRepresentation.php │ │ ├── HalApiRepresentationImpl.php │ │ ├── RepresentationFactory.php │ │ └── RepresentationFactoryImpl.php │ │ ├── Routing │ │ ├── HalApiLink.php │ │ ├── HalApiLinkImpl.php │ │ ├── HalApiUrlGenerator.php │ │ ├── LinkFactory.php │ │ └── LinkFactoryImpl.php │ │ └── Transformers │ │ ├── HalApiTransformer.php │ │ └── HalApiTransformerContract.php ├── config │ ├── .gitkeep │ └── pagination.php ├── controllers │ └── .gitkeep ├── lang │ └── .gitkeep ├── migrations │ └── .gitkeep └── views │ └── .gitkeep └── tests ├── .gitkeep ├── Helpers ├── ResourceRouteTest.php └── RouteHelperTest.php ├── Middleware ├── HalApiCacheMiddlerwareTest.php └── HalApiETagMiddlewareTest.php ├── Representations └── RepresentationFactoryImplTest.php ├── Routing ├── HalApiLinkImplTest.php └── LinkFactoryImplTest.php └── TestCase.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/phpunit.xml -------------------------------------------------------------------------------- /public/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Caching/CacheFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Caching/CacheFactory.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Caching/CacheFactoryImpl.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Caching/CacheFactoryImpl.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Caching/HalApiCache.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Caching/HalApiCache.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Caching/HalApiCacheImpl.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Caching/HalApiCacheImpl.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Controllers/HalApiController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Controllers/HalApiController.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Controllers/HalApiControllerContract.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Controllers/HalApiControllerContract.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Controllers/HalApiControllerParameters.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Controllers/HalApiControllerParameters.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Controllers/HalApiRequestParameters.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Controllers/HalApiRequestParameters.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Controllers/HalApiResourceController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Controllers/HalApiResourceController.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Controllers/HalApiResourceControllerContract.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Controllers/HalApiResourceControllerContract.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Exceptions/BadPostRequestException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Exceptions/BadPostRequestException.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Exceptions/BadPutRequestException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Exceptions/BadPutRequestException.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Exceptions/DatabaseConflictException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Exceptions/DatabaseConflictException.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Exceptions/DatabaseSaveException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Exceptions/DatabaseSaveException.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Exceptions/FieldNotSearchableException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Exceptions/FieldNotSearchableException.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Exceptions/NotImplementedException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Exceptions/NotImplementedException.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Helpers/CacheHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Helpers/CacheHelper.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Helpers/Checks.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Helpers/Checks.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Helpers/ResourceRoute.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Helpers/ResourceRoute.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Helpers/RouteHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Helpers/RouteHelper.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Helpers/RouteHelperConstants.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Helpers/RouteHelperConstants.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Helpers/SafeIndexArray.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Helpers/SafeIndexArray.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Middleware/HalApiCacheMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Middleware/HalApiCacheMiddleware.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Middleware/HalApiETagMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Middleware/HalApiETagMiddleware.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Providers/HalApiServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Providers/HalApiServiceProvider.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Repositories/HalApiEloquentRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Repositories/HalApiEloquentRepository.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Repositories/HalApiEloquentSearchRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Repositories/HalApiEloquentSearchRepository.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Repositories/HalApiRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Repositories/HalApiRepository.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Repositories/HalApiSearchRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Repositories/HalApiSearchRepository.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Representations/HalApiPaginatedRepresentation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Representations/HalApiPaginatedRepresentation.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Representations/HalApiPaginatedRepresentationImpl.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Representations/HalApiPaginatedRepresentationImpl.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Representations/HalApiRepresentation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Representations/HalApiRepresentation.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Representations/HalApiRepresentationImpl.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Representations/HalApiRepresentationImpl.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Representations/RepresentationFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Representations/RepresentationFactory.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Representations/RepresentationFactoryImpl.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Representations/RepresentationFactoryImpl.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Routing/HalApiLink.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Routing/HalApiLink.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Routing/HalApiLinkImpl.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Routing/HalApiLinkImpl.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Routing/HalApiUrlGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Routing/HalApiUrlGenerator.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Routing/LinkFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Routing/LinkFactory.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Routing/LinkFactoryImpl.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Routing/LinkFactoryImpl.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Transformers/HalApiTransformer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Transformers/HalApiTransformer.php -------------------------------------------------------------------------------- /src/Jarischaefer/HalApi/Transformers/HalApiTransformerContract.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/Jarischaefer/HalApi/Transformers/HalApiTransformerContract.php -------------------------------------------------------------------------------- /src/config/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/config/pagination.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/src/config/pagination.php -------------------------------------------------------------------------------- /src/controllers/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/lang/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/views/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Helpers/ResourceRouteTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/tests/Helpers/ResourceRouteTest.php -------------------------------------------------------------------------------- /tests/Helpers/RouteHelperTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/tests/Helpers/RouteHelperTest.php -------------------------------------------------------------------------------- /tests/Middleware/HalApiCacheMiddlerwareTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/tests/Middleware/HalApiCacheMiddlerwareTest.php -------------------------------------------------------------------------------- /tests/Middleware/HalApiETagMiddlewareTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/tests/Middleware/HalApiETagMiddlewareTest.php -------------------------------------------------------------------------------- /tests/Representations/RepresentationFactoryImplTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/tests/Representations/RepresentationFactoryImplTest.php -------------------------------------------------------------------------------- /tests/Routing/HalApiLinkImplTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/tests/Routing/HalApiLinkImplTest.php -------------------------------------------------------------------------------- /tests/Routing/LinkFactoryImplTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/tests/Routing/LinkFactoryImplTest.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jarischaefer/hal-api/HEAD/tests/TestCase.php --------------------------------------------------------------------------------