├── .gitignore ├── ApiClient ├── ApiClient.csproj ├── Controllers │ └── HomeController.cs ├── Models │ ├── BlogStoryDto.cs │ └── ErrorViewModel.cs ├── Program.cs ├── Startup.cs ├── Views │ ├── Home │ │ ├── About.cshtml │ │ ├── Contact.cshtml │ │ └── Index.cshtml │ ├── Shared │ │ ├── Error.cshtml │ │ ├── _Layout.cshtml │ │ └── _ValidationScriptsPartial.cshtml │ ├── _ViewImports.cshtml │ └── _ViewStart.cshtml ├── appsettings.Development.json ├── appsettings.json ├── bundleconfig.json └── wwwroot │ ├── css │ ├── site.css │ └── site.min.css │ ├── favicon.ico │ ├── images │ ├── banner1.svg │ ├── banner2.svg │ ├── banner3.svg │ └── banner4.svg │ ├── js │ ├── site.js │ └── site.min.js │ └── lib │ ├── bootstrap │ ├── .bower.json │ ├── LICENSE │ └── dist │ │ ├── css │ │ ├── bootstrap-theme.css │ │ ├── bootstrap-theme.css.map │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap-theme.min.css.map │ │ ├── bootstrap.css │ │ ├── bootstrap.css.map │ │ ├── bootstrap.min.css │ │ └── bootstrap.min.css.map │ │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ │ └── js │ │ ├── bootstrap.js │ │ ├── bootstrap.min.js │ │ └── npm.js │ ├── jquery-validation-unobtrusive │ ├── .bower.json │ ├── jquery.validate.unobtrusive.js │ └── jquery.validate.unobtrusive.min.js │ ├── jquery-validation │ ├── .bower.json │ ├── LICENSE.md │ └── dist │ │ ├── additional-methods.js │ │ ├── additional-methods.min.js │ │ ├── jquery.validate.js │ │ └── jquery.validate.min.js │ └── jquery │ ├── .bower.json │ ├── LICENSE.txt │ └── dist │ ├── jquery.js │ ├── jquery.min.js │ └── jquery.min.map ├── LICENSE ├── README.md ├── RestfulApiBestPracticesAspNetCore.sln └── RestfulApiBestPracticesAspNetCore ├── Controllers ├── AuthorCollectionsController.cs ├── AuthorsController.cs ├── BooksController.cs └── RootController.cs ├── Dto ├── AuthorDto.cs ├── AuthorForCreationDto.cs ├── AuthorForCreationWithDateOfDeathDto.cs ├── BookDto.cs ├── BookForCreationDto.cs ├── BookForManipulationDto.cs ├── BookForUpdateDto.cs ├── LinkDto.cs ├── LinkedCollectionResourceWrapperDto.cs ├── LinkedResourceBaseDto.cs └── PatchDto.cs ├── Entities ├── Author.cs ├── Book.cs ├── LibraryContext.cs └── LibraryContextExtensions.cs ├── Extensions ├── DateTimeOffsetExtensions.cs ├── IEnumerableExtensions.cs ├── IQueryableExtensions.cs ├── ObjectExtensions.cs └── TypeExtensions.cs ├── Helpers ├── ArrayModelBinder.cs ├── AuthorsResourceParameters.cs ├── PagedList.cs └── ValidateModelAttribute.cs ├── HttpServices ├── ApplyPatchEntityFramework.cs ├── PatchWithoutJsonPatchDocument.cs ├── RequestHeaderMatchesMediaTypeAttribute.cs ├── RequireNonDefaultAttribute.cs ├── ResourceUriType.cs └── UnprocessableEntityObjectResult.cs ├── Infrastructure └── ApiGlobalExceptionHandlerExtension.cs ├── Migrations ├── 20170111165006_AddDateOfDeathToAuthor.Designer.cs ├── 20170111165006_AddDateOfDeathToAuthor.cs ├── InitialMigration.Designer.cs ├── InitialMigration.cs └── LibraryContextModelSnapshot.cs ├── Models └── Variance.cs ├── Program.cs ├── RestfulApiBestPracticesAspNetCore.csproj ├── Services ├── ILibraryRepository.cs ├── IPropertyMapping.cs ├── IPropertyMappingService.cs ├── ITypeHelperService.cs ├── LibraryRepository.cs ├── PropertyMapping.cs ├── PropertyMappingService.cs ├── PropertyMappingValue.cs └── TypeHelperService.cs ├── Startup.cs └── appsettings.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/.gitignore -------------------------------------------------------------------------------- /ApiClient/ApiClient.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/ApiClient.csproj -------------------------------------------------------------------------------- /ApiClient/Controllers/HomeController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/Controllers/HomeController.cs -------------------------------------------------------------------------------- /ApiClient/Models/BlogStoryDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/Models/BlogStoryDto.cs -------------------------------------------------------------------------------- /ApiClient/Models/ErrorViewModel.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/Models/ErrorViewModel.cs -------------------------------------------------------------------------------- /ApiClient/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/Program.cs -------------------------------------------------------------------------------- /ApiClient/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/Startup.cs -------------------------------------------------------------------------------- /ApiClient/Views/Home/About.cshtml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/Views/Home/About.cshtml -------------------------------------------------------------------------------- /ApiClient/Views/Home/Contact.cshtml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/Views/Home/Contact.cshtml -------------------------------------------------------------------------------- /ApiClient/Views/Home/Index.cshtml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/Views/Home/Index.cshtml -------------------------------------------------------------------------------- /ApiClient/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/Views/Shared/Error.cshtml -------------------------------------------------------------------------------- /ApiClient/Views/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/Views/Shared/_Layout.cshtml -------------------------------------------------------------------------------- /ApiClient/Views/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/Views/Shared/_ValidationScriptsPartial.cshtml -------------------------------------------------------------------------------- /ApiClient/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/Views/_ViewImports.cshtml -------------------------------------------------------------------------------- /ApiClient/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/Views/_ViewStart.cshtml -------------------------------------------------------------------------------- /ApiClient/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/appsettings.Development.json -------------------------------------------------------------------------------- /ApiClient/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/appsettings.json -------------------------------------------------------------------------------- /ApiClient/bundleconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/bundleconfig.json -------------------------------------------------------------------------------- /ApiClient/wwwroot/css/site.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/css/site.css -------------------------------------------------------------------------------- /ApiClient/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/css/site.min.css -------------------------------------------------------------------------------- /ApiClient/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/favicon.ico -------------------------------------------------------------------------------- /ApiClient/wwwroot/images/banner1.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/images/banner1.svg -------------------------------------------------------------------------------- /ApiClient/wwwroot/images/banner2.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/images/banner2.svg -------------------------------------------------------------------------------- /ApiClient/wwwroot/images/banner3.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/images/banner3.svg -------------------------------------------------------------------------------- /ApiClient/wwwroot/images/banner4.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/images/banner4.svg -------------------------------------------------------------------------------- /ApiClient/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your JavaScript code. 2 | -------------------------------------------------------------------------------- /ApiClient/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/.bower.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/.bower.json -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/LICENSE -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap.css -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/js/bootstrap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/js/bootstrap.js -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/bootstrap/dist/js/npm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/bootstrap/dist/js/npm.js -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/jquery-validation-unobtrusive/.bower.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/jquery-validation-unobtrusive/.bower.json -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/jquery-validation/.bower.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/jquery-validation/.bower.json -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/jquery-validation/LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/jquery-validation/LICENSE.md -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/jquery-validation/dist/additional-methods.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/jquery-validation/dist/additional-methods.js -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/jquery-validation/dist/additional-methods.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/jquery-validation/dist/additional-methods.min.js -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/jquery-validation/dist/jquery.validate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/jquery-validation/dist/jquery.validate.js -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/jquery/.bower.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/jquery/.bower.json -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/jquery/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/jquery/LICENSE.txt -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/jquery/dist/jquery.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/jquery/dist/jquery.js -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/jquery/dist/jquery.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/jquery/dist/jquery.min.js -------------------------------------------------------------------------------- /ApiClient/wwwroot/lib/jquery/dist/jquery.min.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/ApiClient/wwwroot/lib/jquery/dist/jquery.min.map -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/README.md -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore.sln -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Controllers/AuthorCollectionsController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Controllers/AuthorCollectionsController.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Controllers/AuthorsController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Controllers/AuthorsController.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Controllers/BooksController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Controllers/BooksController.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Controllers/RootController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Controllers/RootController.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Dto/AuthorDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Dto/AuthorDto.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Dto/AuthorForCreationDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Dto/AuthorForCreationDto.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Dto/AuthorForCreationWithDateOfDeathDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Dto/AuthorForCreationWithDateOfDeathDto.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Dto/BookDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Dto/BookDto.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Dto/BookForCreationDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Dto/BookForCreationDto.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Dto/BookForManipulationDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Dto/BookForManipulationDto.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Dto/BookForUpdateDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Dto/BookForUpdateDto.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Dto/LinkDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Dto/LinkDto.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Dto/LinkedCollectionResourceWrapperDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Dto/LinkedCollectionResourceWrapperDto.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Dto/LinkedResourceBaseDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Dto/LinkedResourceBaseDto.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Dto/PatchDto.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Dto/PatchDto.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Entities/Author.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Entities/Author.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Entities/Book.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Entities/Book.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Entities/LibraryContext.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Entities/LibraryContext.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Entities/LibraryContextExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Entities/LibraryContextExtensions.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Extensions/DateTimeOffsetExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Extensions/DateTimeOffsetExtensions.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Extensions/IEnumerableExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Extensions/IEnumerableExtensions.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Extensions/IQueryableExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Extensions/IQueryableExtensions.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Extensions/ObjectExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Extensions/ObjectExtensions.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Extensions/TypeExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Extensions/TypeExtensions.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Helpers/ArrayModelBinder.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Helpers/ArrayModelBinder.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Helpers/AuthorsResourceParameters.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Helpers/AuthorsResourceParameters.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Helpers/PagedList.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Helpers/PagedList.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Helpers/ValidateModelAttribute.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Helpers/ValidateModelAttribute.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/HttpServices/ApplyPatchEntityFramework.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/HttpServices/ApplyPatchEntityFramework.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/HttpServices/PatchWithoutJsonPatchDocument.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/HttpServices/PatchWithoutJsonPatchDocument.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/HttpServices/RequestHeaderMatchesMediaTypeAttribute.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/HttpServices/RequestHeaderMatchesMediaTypeAttribute.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/HttpServices/RequireNonDefaultAttribute.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/HttpServices/RequireNonDefaultAttribute.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/HttpServices/ResourceUriType.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/HttpServices/ResourceUriType.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/HttpServices/UnprocessableEntityObjectResult.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/HttpServices/UnprocessableEntityObjectResult.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Infrastructure/ApiGlobalExceptionHandlerExtension.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Infrastructure/ApiGlobalExceptionHandlerExtension.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Migrations/20170111165006_AddDateOfDeathToAuthor.Designer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Migrations/20170111165006_AddDateOfDeathToAuthor.Designer.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Migrations/20170111165006_AddDateOfDeathToAuthor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Migrations/20170111165006_AddDateOfDeathToAuthor.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Migrations/InitialMigration.Designer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Migrations/InitialMigration.Designer.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Migrations/InitialMigration.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Migrations/InitialMigration.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Migrations/LibraryContextModelSnapshot.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Migrations/LibraryContextModelSnapshot.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Models/Variance.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Models/Variance.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Program.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/RestfulApiBestPracticesAspNetCore.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/RestfulApiBestPracticesAspNetCore.csproj -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Services/ILibraryRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Services/ILibraryRepository.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Services/IPropertyMapping.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Services/IPropertyMapping.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Services/IPropertyMappingService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Services/IPropertyMappingService.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Services/ITypeHelperService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Services/ITypeHelperService.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Services/LibraryRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Services/LibraryRepository.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Services/PropertyMapping.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Services/PropertyMapping.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Services/PropertyMappingService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Services/PropertyMappingService.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Services/PropertyMappingValue.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Services/PropertyMappingValue.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Services/TypeHelperService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Services/TypeHelperService.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/Startup.cs -------------------------------------------------------------------------------- /RestfulApiBestPracticesAspNetCore/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HamidMosalla/RestfulApiBestPracticesAspNetCore/HEAD/RestfulApiBestPracticesAspNetCore/appsettings.json --------------------------------------------------------------------------------