├── .travis.yml ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md ├── composer.json ├── config └── laravel_api.php ├── resources └── templates │ ├── authentication_test.stub │ ├── controller.stub │ ├── model.stub │ ├── model_permissions.stub │ ├── policy.stub │ ├── repository.stub │ ├── route.stub │ └── translation.stub └── src ├── Console └── Commands │ ├── BaseGenerateCommand.php │ ├── GenerateAllCommand.php │ ├── GenerateApiControllerCommand.php │ ├── GenerateAuthenticationTestCommand.php │ ├── GenerateModelCommand.php │ ├── GenerateModelPermissionsCommand.php │ ├── GenerateModelTranslationCommand.php │ ├── GeneratePolicyCommand.php │ ├── GenerateRepositoryCommand.php │ └── GenerateRoutesCommand.php ├── Constants └── HttpCodes.php ├── Exceptions ├── BadRequestException.php ├── ContentTypeNotSupportedException.php ├── ForbiddenException.php ├── JsonException.php └── NotFoundException.php ├── Http ├── Controllers │ └── Api │ │ └── BaseApiController.php ├── Middleware │ ├── ConfigureLocale.php │ └── InspectContentType.php └── Resources │ ├── AnonymousResourceCollection.php │ ├── BaseApiCollectionResource.php │ ├── BaseApiResource.php │ ├── IdentifierResource.php │ └── JsonApiResource.php ├── Models └── Responses │ ├── RespondError.php │ ├── RespondHttpCreated.php │ ├── RespondHttpForbidden.php │ ├── RespondHttpNoContent.php │ ├── RespondHttpNotFound.php │ ├── RespondHttpOk.php │ ├── RespondHttpPartialContent.php │ ├── RespondHttpUnauthorized.php │ └── RespondSuccess.php ├── Paginators └── EmptyPaginator.php ├── Providers └── LaravelApiServiceProvider.php ├── Repositories ├── BaseApiRepository.php └── RepositoryInterface.php ├── Services ├── CustomFileGenerator.php └── ResponseService.php └── Traits ├── HandleResponses.php └── HandlesRelationships.php /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/.travis.yml -------------------------------------------------------------------------------- /ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/composer.json -------------------------------------------------------------------------------- /config/laravel_api.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/config/laravel_api.php -------------------------------------------------------------------------------- /resources/templates/authentication_test.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/resources/templates/authentication_test.stub -------------------------------------------------------------------------------- /resources/templates/controller.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/resources/templates/controller.stub -------------------------------------------------------------------------------- /resources/templates/model.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/resources/templates/model.stub -------------------------------------------------------------------------------- /resources/templates/model_permissions.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/resources/templates/model_permissions.stub -------------------------------------------------------------------------------- /resources/templates/policy.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/resources/templates/policy.stub -------------------------------------------------------------------------------- /resources/templates/repository.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/resources/templates/repository.stub -------------------------------------------------------------------------------- /resources/templates/route.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/resources/templates/route.stub -------------------------------------------------------------------------------- /resources/templates/translation.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/resources/templates/translation.stub -------------------------------------------------------------------------------- /src/Console/Commands/BaseGenerateCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Console/Commands/BaseGenerateCommand.php -------------------------------------------------------------------------------- /src/Console/Commands/GenerateAllCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Console/Commands/GenerateAllCommand.php -------------------------------------------------------------------------------- /src/Console/Commands/GenerateApiControllerCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Console/Commands/GenerateApiControllerCommand.php -------------------------------------------------------------------------------- /src/Console/Commands/GenerateAuthenticationTestCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Console/Commands/GenerateAuthenticationTestCommand.php -------------------------------------------------------------------------------- /src/Console/Commands/GenerateModelCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Console/Commands/GenerateModelCommand.php -------------------------------------------------------------------------------- /src/Console/Commands/GenerateModelPermissionsCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Console/Commands/GenerateModelPermissionsCommand.php -------------------------------------------------------------------------------- /src/Console/Commands/GenerateModelTranslationCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Console/Commands/GenerateModelTranslationCommand.php -------------------------------------------------------------------------------- /src/Console/Commands/GeneratePolicyCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Console/Commands/GeneratePolicyCommand.php -------------------------------------------------------------------------------- /src/Console/Commands/GenerateRepositoryCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Console/Commands/GenerateRepositoryCommand.php -------------------------------------------------------------------------------- /src/Console/Commands/GenerateRoutesCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Console/Commands/GenerateRoutesCommand.php -------------------------------------------------------------------------------- /src/Constants/HttpCodes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Constants/HttpCodes.php -------------------------------------------------------------------------------- /src/Exceptions/BadRequestException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Exceptions/BadRequestException.php -------------------------------------------------------------------------------- /src/Exceptions/ContentTypeNotSupportedException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Exceptions/ContentTypeNotSupportedException.php -------------------------------------------------------------------------------- /src/Exceptions/ForbiddenException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Exceptions/ForbiddenException.php -------------------------------------------------------------------------------- /src/Exceptions/JsonException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Exceptions/JsonException.php -------------------------------------------------------------------------------- /src/Exceptions/NotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Exceptions/NotFoundException.php -------------------------------------------------------------------------------- /src/Http/Controllers/Api/BaseApiController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Http/Controllers/Api/BaseApiController.php -------------------------------------------------------------------------------- /src/Http/Middleware/ConfigureLocale.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Http/Middleware/ConfigureLocale.php -------------------------------------------------------------------------------- /src/Http/Middleware/InspectContentType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Http/Middleware/InspectContentType.php -------------------------------------------------------------------------------- /src/Http/Resources/AnonymousResourceCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Http/Resources/AnonymousResourceCollection.php -------------------------------------------------------------------------------- /src/Http/Resources/BaseApiCollectionResource.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Http/Resources/BaseApiCollectionResource.php -------------------------------------------------------------------------------- /src/Http/Resources/BaseApiResource.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Http/Resources/BaseApiResource.php -------------------------------------------------------------------------------- /src/Http/Resources/IdentifierResource.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Http/Resources/IdentifierResource.php -------------------------------------------------------------------------------- /src/Http/Resources/JsonApiResource.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Http/Resources/JsonApiResource.php -------------------------------------------------------------------------------- /src/Models/Responses/RespondError.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Models/Responses/RespondError.php -------------------------------------------------------------------------------- /src/Models/Responses/RespondHttpCreated.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Models/Responses/RespondHttpCreated.php -------------------------------------------------------------------------------- /src/Models/Responses/RespondHttpForbidden.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Models/Responses/RespondHttpForbidden.php -------------------------------------------------------------------------------- /src/Models/Responses/RespondHttpNoContent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Models/Responses/RespondHttpNoContent.php -------------------------------------------------------------------------------- /src/Models/Responses/RespondHttpNotFound.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Models/Responses/RespondHttpNotFound.php -------------------------------------------------------------------------------- /src/Models/Responses/RespondHttpOk.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Models/Responses/RespondHttpOk.php -------------------------------------------------------------------------------- /src/Models/Responses/RespondHttpPartialContent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Models/Responses/RespondHttpPartialContent.php -------------------------------------------------------------------------------- /src/Models/Responses/RespondHttpUnauthorized.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Models/Responses/RespondHttpUnauthorized.php -------------------------------------------------------------------------------- /src/Models/Responses/RespondSuccess.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Models/Responses/RespondSuccess.php -------------------------------------------------------------------------------- /src/Paginators/EmptyPaginator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Paginators/EmptyPaginator.php -------------------------------------------------------------------------------- /src/Providers/LaravelApiServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Providers/LaravelApiServiceProvider.php -------------------------------------------------------------------------------- /src/Repositories/BaseApiRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Repositories/BaseApiRepository.php -------------------------------------------------------------------------------- /src/Repositories/RepositoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Repositories/RepositoryInterface.php -------------------------------------------------------------------------------- /src/Services/CustomFileGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Services/CustomFileGenerator.php -------------------------------------------------------------------------------- /src/Services/ResponseService.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Services/ResponseService.php -------------------------------------------------------------------------------- /src/Traits/HandleResponses.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Traits/HandleResponses.php -------------------------------------------------------------------------------- /src/Traits/HandlesRelationships.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/swisnl/json-api-server/HEAD/src/Traits/HandlesRelationships.php --------------------------------------------------------------------------------