{"repo":"troyanskiy/ngx-resource","free":true,"listed":false,"github":"https://github.com/troyanskiy/ngx-resource","clone":"git clone https://github.com/troyanskiy/ngx-resource.git","description":"Resource (REST) Client for Angular 2","language":"TypeScript","stars":198,"topics":["angular-2","rest","rest-api","network","requests"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Unfortunately I don't have time to maintain the library. So PRs are more than welcome. @ngx-resource/core @ngx-resource/handler-ngx-http @ngx-resource/handler-cordova-advanced-http @ngx-resource/handler-ngx-http-legacy --- --- --- --- @ngx-resource/core Resource Core is an evolution of ngx-resource lib which provides flexibility for developers. Each developer can implement their own request handlers to easily customize the behavior. In fact, @ngx-resource/core is an abstract common library which uses ResourceHandler to make requests, so it's even possible to use the lib on node.js server side with typescript. You just need to implement a ResourceHandler for it. All my examples will be based on angular 4.4.4+ Known ResourceHandlers @ngx-resource/handler-ngx-http . Based on HttpClient from @angular/common/http . Includes ResourceModule.forRoot . @ngx-resource/handler-ngx-http-legacy . Based on Http from @angular/http . Includes ResourceModule.forRoot . @ngx-resource/handler-cordova-advanced-http . Based on Cordova Plugin Advanced HTTP. @ngx-resource/handler-fetch . Besed on Fetch API. Not yet created. Creation of Resource class Final url is generated by concatination of $getUrl , $getPathPrefix and $getPath methods of Resource base class. IResourceParams Is used by ResourceParams decorator for class decoration List of params: url?: string; - url of the api server; default '' pathPrefix?: string; - path prefix of the api; default '' path?: string; - path of the api; default '' h","default_branch":null,"files":null,"tree":[],"storefront":"/r/troyanskiy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/troyanskiy/ngx-resource/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}